Keycode Info
Use an online keycode viewer to inspect key, code, keyCode, and keyboard event details.
Concept
KeyboardEvent key, code, keyCode inspection
This tool helps verify KeyboardEvent outputs (key, code, keyCode, which, location, and modifiers) when checking keyboard shortcuts and debugging input-event behavior.
When a key or shortcut returns unexpected values, use it to compare event properties quickly and identify mismatched key handling or blocked shortcut logic.
Results can vary by browser engine, operating system, and keyboard layout, so test across your target environments before finalizing shortcut definitions.
What it checks
You can inspect key, code, keyCode, which, location, and Ctrl/Alt/Shift/Meta states at once.
Use cases
Useful for shortcut mapping reviews, input event tests, and debugging key-based UI workflows.
Known caveats
Browser- or OS-reserved shortcuts may never reach the page, and mobile virtual keyboards may expose partial key event values.
The same physical keypress can return different values across browser, OS, and keyboard layout combinations, so validate by environment.
Keycode Info Keycode inspection workspace
How to use
- 1 Click the key input area to focus it.
- 2 Press the key or shortcut combination you want to inspect.
- 3 Check the key, code, keyCode, which, and location values.
- 4 Review the Ctrl, Alt, Shift, and Meta modifier states too.
Common use cases
- Keyboard key code lookup
- Online keycode tester
- JavaScript keycode debugging
- Shortcut modifier checks
Frequently asked questions
What can I inspect with this keycode viewer?
When you press a key in the input area, the tool shows key, code, keyCode, which, location, and the Ctrl, Alt, Shift, and Meta modifier states in real time.
Is there a copy button for the result?
Yes. Use the copy button to copy the key event analysis JSON. You can still select displayed text on the page if you only need a specific value.
Will every key press be captured?
Shortcuts reserved by the browser or operating system may not reach the page, and mobile virtual keyboards may not expose every key event property.