Keycode Info
Get keyboard event key, code, and keycode details
📌 TL;DR Summary & Citation: [Keycode Info] is a browser-local PocketKit tool for Get keyboard event key, code, and keycode details. Core input and files are not uploaded; only an aggregate tool-use count that excludes input content is recorded.
How keyboard event detection works
The tool listens to the browser keydown event and shows event.key, event.code, the legacy keyCode, and the Ctrl/Alt/Shift/Meta modifier state so you can pick the right key identifier. Captured entirely locally.
- Prefer event.code (physical key, layout-independent) or event.key (character) in modern code; keyCode is deprecated.
- Some combinations (like Ctrl+W) are intercepted by the OS or browser, so the page may never receive the event.
FAQ
1. What is the difference between key, code and keyCode?
key is the character produced (affected by layout and case); code is the physical key position (layout-independent, preferred in modern code); keyCode is a deprecated numeric code kept only for legacy compatibility.
2. Why are some keys not detected?
Certain OS- or browser-level shortcuts (like Ctrl+W or some function keys) are intercepted upstream, so the page never receives the event. This is expected.