Keycode Info
Press any key and see `event.key`, `event.code`, `keyCode`, `which` and `location`. Useful to build shortcuts, games and keyboard-aware forms. Everything in your browser.
Press any key while this panel has focus.
Find any key's code
Anyone programming keyboard interactions in JavaScript needs to know exactly which values each key fires. The tool shows that right on screen: click the panel field to give it focus and press a key — the event's fields all appear together: event.key, event.code, keyCode, which and location.
For building shortcuts, games that react to the keyboard, forms with custom navigation or any feature that captures keys, this is fundamental. Rather than checking outdated tables (keyCode, for instance, is already deprecated), you see the real values the browser delivers for that specific key.
It runs entirely in the browser, with nothing to install. It works as a living reference for front-end developers to debug keyboard events precisely.
Frequently asked questions
I pressed a key and nothing changed on screen
Why is event.key shown in quotes when the other fields are not?
keyCode and which show the same number. Which one should I use?
Related Tools
JavaScript Escape / Unescape
Escape JavaScript strings by adding backslashes before special characters and convert back to the original.
JavaScript Formatter
Format and indent JavaScript code for better readability and debugging.
JavaScript Minifier
Minify JavaScript code by removing whitespace and comments to reduce file size in production.
VS Code Keybinding Generator
Generate entries for VS Code keybindings.json with key, command and when-context. Custom shortcut in seconds.
HTML Preview
Write HTML, CSS and JavaScript and see the rendered result in real time. Isolated sandbox — no code is sent to any server.
Cubic Bezier Generator
Create and visualize cubic-bezier curves for CSS animations. Drag control points, preview the animation and copy the value. Includes presets (ease, ease-in, ease-out). Everything in your browser.