Press a key to see its JS event.key, event.code, and keyCode values.
Press any key to inspect it
event.key, event.code, keyCode, modifiers and more
Press any key and instantly see its JavaScript event values: event.key, event.code, the deprecated keyCode and which, modifier states (Shift, Ctrl, Alt, Meta), key location, and repeat detection. Keeps a history of your last 10 keypresses and generates a ready-to-paste JS snippet. Runs entirely in your browser.
JavaScript KeyCode Finder allows developers to instantly inspect keyboard events by pressing any key to view property values like event.key, event.code, legacy codes, and modifier states. It tracks a history of the last ten keypresses and generates ready-to-paste snippets directly in the browser without requiring any installation or signup.
Good to know: This tool is focused specifically on inspecting browser keyboard events and is not designed for broader code execution or comprehensive automated testing suites.
Learn how to instantly inspect JavaScript keyboard event properties and generate a ready-to-paste code snippet by pressing keys in your browser.
Open the JavaScript KeyCode Finder tool
Navigate to the KeyCode Finder tool directly in your web browser to access the keyboard event inspector interface.
Press any key on your keyboard
Press the target key you want to inspect to immediately capture its keyboard event data.
Inspect event properties and modifiers
View real-time values including event.key, event.code, deprecated keyCode, modifier states, key location, and repeat detection.
Review your recent keypress history
Check the history panel to analyze your last 10 keypresses and compare their event values side by side.
Copy the generated JavaScript snippet
Grab the ready-to-paste JS snippet generated from your keypress to use directly in your own codebase.
Estimated time: PT1M
Share this tool
Beautify, minify, and validate JSON data instantly.
Encode and decode Base64 strings instantly.
Generate v4 UUIDs instantly, single or in bulk.
Explain any code in plain language — all languages supported.
Percent-encode or decode URL strings instantly.
Encode/decode HTML entities like < > &.
Convert text or Markdown to a Word .docx file with live preview, RTL, and page-setup options.
Draw a Secret Santa with exclusions and share a private reveal link for each person.
Make custom bingo cards from your own words — play, print, or share a link.
Convert images to video with the Ken Burns zoom/pan effect. Add music and export as WebM.
Load and compare multiple URLs side by side in resizable iframes.
Rank anything with quick 1-v-1 matchups → a full ordered list you can share.
Convert Markdown to a fully customized, RTL-ready PDF.
See your public IP address plus full location, ISP, ASN, timezone, coordinates, and more.