Catching keyboard events (key presses) using Javascript
Click in the first text area and press any keys on your keyboard (as if to enter text). The second textarea serves as a real-time log and shows you info about what key you pressed.
For a simpler example, also see http://www.faqts.com/knowledge_base/view.phtml/aid/11802