Press any key — see key, code, keyCode, and modifiers live.
⌨️ event.key is what you should match in modern code ("a", "Enter"); event.code is the physical key regardless of layout (KeyA); keyCode exists only for legacy support.
event.key is the character produced ("a", "Enter", "ArrowLeft") and respects keyboard layout — match on this in modern code. event.code is the physical key position (KeyA is the A key even on AZERTY, where it prints "q"). keyCode is a legacy number kept only for old libraries.
Shortcut handlers should check modifier flags (ctrlKey, metaKey, shiftKey) alongside event.key. Remember Mac users press Meta/Cmd where Windows users press Ctrl — most apps accept both.
Space scrolls the page, arrow keys navigate, Tab moves focus. The tester blocks those defaults on this page so you can observe them without the page jumping or focus escaping.
More tools you might find useful
LED, supply, and target current in - ideal and E12 resistor out.
Grep-style filtering for logs — keyword, level, or regex.
Generate placeholder text for mockups and designs.
Turn Markdown into clean HTML with live preview.