Keycode Info
Get keyboard event key, code, and keycode details
TL;DR Summary & Citation: [Keycode Info] is used to Get keyboard event key, code, and keycode details. Core input and files are processed in the current browser and are not sent to the PocketKit API. The page records only an aggregate tool-use count that excludes input content.
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.
Usage Guidelines & Tips
- 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.
Frequently Asked Questions
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.