Capture Events: onkeypress

This script will capture specific keypresses on the keyboard. Please press 'N' on the keyboard for a demonstration.

This script cannot be used with a form, as the capture of the keypress event will override any characters to be entered into text areas, etc.

Select and copy the script from below, or use the reveal code function on your browser. Watch out for wrapped lines.