Keycode Info
Press any key to see its JavaScript keyboard-event values — key, code, keyCode, which, location, and active modifiers — for wiring up keyboard shortcuts and handlers.
Click here, then press any key
- event.key
- event.code
- event.keyCode
- event.which
- event.location
- modifiers
Values are read straight from the browser's keyboard event. keyCode and which are legacy (deprecated) — prefer key and code in new code.