Detecting keystrokes Page last changed today iCab doesn't support the key events at all. Many thanks to Hallvord Steen for his summary of the key events in Windows browsers; his page saved me quite a bit of work. Detecting the user's keystrokes turns out to be a rather specialised branch of event handling. The first problem is that there is no standard for key events; the specification says: An event module designed for use with keyboard input devices will be included in a later version of the DOM specification. As we all know, browser vendors start experimenting when there's no official standard, and these experiments, though occasionally useful, also cause incompatibilities. In addition, there are a few important differences between the keydown and keyup events on one hand, and the keypress event on the other. Finally, there are important differences between Windows and Mac. The two properties are keyCode and charCode. Explorer and Opera do not support charCode. Let's start with a simple example.
Aptana: The Web IDE