on a keydown I get the following from jQuery:
jQuery.Event
altKey: false
attrChange: undefined
attrName: undefined
bubbles: true
button: undefined
cancelable
Here is the fiddle that matches your exact requirement
http://jsfiddle.net/cSc7r/
You may have to use
String.fromCharCode(key_event.which);
or
String.fromCharCode(event.keyCode); // For IE
However if you want to run any event on key press here is a nice plugin to make it very easily. Please check this fiddle http://jsfiddle.net/zUc4Z/.