In this example, we show a cross-browser solution for using both the key and keyIdentifier property. The key property is currently only supported in Firefox and IE9+, while keyIdentifier is only supported in Chrome, Safari and Opera 15+.
Press the "A" key on the keyboard in the input field to alert some text.