I agree, it's not the knock sensor. Sounds like a spark issue. You said the plugs where just replaced, but it could be they're the wrong gap? or cap and rotor? wires?

I'd start there.