Press any key to instantly see its key value, code, keyCode, modifier states, and more.
⌨️
Press any key
Key information will appear here
Frequently Asked Questions
keyCode is a deprecated numeric property from keyboard events that represents a system- and implementation-dependent numerical code identifying the unmodified value of the pressed key. Modern code should use the 'key' and 'code' properties instead.
The 'key' property returns the character produced by the key press (e.g., 'a' or 'A' depending on Shift), while 'code' represents the physical key on the keyboard (e.g., 'KeyA') regardless of modifier keys or keyboard layout.
Some key combinations are intercepted by the browser or operating system before they reach the page. For example, Ctrl+W closes a tab, and Cmd+Q quits the browser. The tool can only capture events that the browser passes through to JavaScript.