Correct Logic Gate

What logic gate would I use in the BGE if I want an action to always occur except while a key is pressed (in which case another action is performed). I tried this with an always sensor and a keyboard sensor connected to the same logic gate (I tried all of the available logic gates) but none of the seem to do the trick. Does anyone know the correct way to set this up (or maybe a python script to accomplish this)?

Thanks

Keyboard sensor with True pulse and Negative setting should work.

Nevermind I figured it out. Thanks for the help.