Compare a browser keyboard event’s produced key, physical code, and legacy numeric keyCode.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
The lookup searches a curated US-layout table by key value, physical code, description, or legacy number. UI Events separates the value produced in key from the keyboard position in code, while the numeric keyCode column is retained only to identify older JavaScript.
enter
2 of 110 keys match "enter": Key Code KeyCode Description Enter Enter 13 Confirms input or inserts a newline Enter NumpadEnter 13 Enter on the numeric keypad
Browser shortcuts inspect key, game controls bind code to WASD positions, and legacy front-end maintenance replaces numeric keyCode comparisons with modern event properties.