Press any key
event.key—
event.code—
keyCode (deprecated)—
location—
Held now0
Max held at once0
Keys tested0
Note: the Fn key is handled by the keyboard hardware or the OS, and browsers never receive a key event for it, so Fn cannot be tested here. Some system shortcuts (Cmd/Win combinations, Alt+Tab) are caught by the OS first, and on macOS key-up events for other keys may not arrive while Cmd is held. The keyboard's own rollover limit and ghosting also affect the result.
The diagram is an ANSI keyboard (function row, editing block, arrows, numpad). A key turns purple while held and stays green once tested. “Max held at once” checks rollover: hold several keys together and see how many register.
Keys not on the diagram: —
Recent events