Press any key on your keyboard. This tool shows event.key, event.code, the deprecated keyCode and which, event.location, and which modifier keys are held. Nothing leaves this page.
Press a key
Your last keypress appears here
event.key
—
event.code
—
event.keyCode
—
event.which
—
event.location
—
event.repeat
—
ctrlKeyaltKeyshiftKeymetaKey
Tab, Space, Enter, arrow keys, and a few others have preventDefault applied so the page stays usable while you inspect them. Everything else behaves normally.