jQuery Keypress
Keypress Command:
We can use jQuery to perform certain functions on keypress events. These events can be either a “keypress” event (.keypress()), a “keydown” event (.keydown()), or a “keyup” event (.keyup()). For the most part, these commands are self-explanatory. When you use a keypress, a certain function will be performed while a key is pressed on the keyboard. The keypress command does not trigger specialty keys like ESC, ALT, CTRL, SHFT, etc. The “keydown” event is similar in that it activates a function when a key is fully pressed down. The keyup command triggers a function when a key has been pressed, and is now on the way up.
For more information on the .keypress(), .keydown(), and .keyup() commands, please visit:
http://www.w3schools.com/jquery/event_keypress.asp
and
http://api.jquery.com/keypress/