yeah, even without you saying anything about the knock sensor that's one of the first things I would have said.
other than that, i'd clean the MAF, check fuel pressure, test injectors, spark plugs, wires, cap, rotor. the usual stuff. Typically, you get different symptons, but these things could cause that kind of feeling in the power curve. but most likely, it is the knock sensor.