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 inside its capture zone so you can observe them without the page jumping.
The Keyboard Event Info (Keycode) handles javascript keycodedirectly in your browser. Paste or type your input, and the tool processes it instantly — no upload, no signup, no waiting. It's built for the moments when you need a quick transformation and don't want to leave your workflow.
Because the tool runs client-side, it's fast and private. Your text never touches a server, which makes it safe for sensitive content. The interface is keyboard-friendly and works on any device with a modern browser.
Common uses: people reach for this tool when they need to use a what is my keycode, event.key vs event.code difference, enter key javascript keycode value, or test keyboard events online.
Browser-based tools like this one have a few real advantages over installed software or manual methods:
More tools you might find useful