JavaScript KeyCode Finder

Press any key to get its keyCode, key, code, and which values

Share this tool

Report a problem

Describe the problem without including private input or files.

How useful was this tool?

How useful was this tool?

Keyboard capture

—

Focus here and press a key

Keyboard events are captured only inside this area. Tab records the key and moves focus to the next control.

For complete keyboard events, use a physical keyboard. Mobile keyboards may omit some properties.

Recent key presses

Your last 10 key presses will appear here.

Keyboard event details

event.key
—
event.code
—
event.keyCodeDeprecated
—
event.whichDeprecated
—
event.location
—
event.repeat
—

Modifier keys

ShiftOFFCtrlOFFAltOFFMetaOFF

Focus the capture area to inspect a keyboard event.

About JavaScript Keycode Finder

The JavaScript Keycode Finder is a free developer tool that shows every keyboard event property for the key you press. For keyboard shortcuts, game controls, or accessible navigation, knowing the exact values of event.key, event.code, event.keyCode, and event.which is essential for writing reliable, cross-browser JavaScript.

Modern web applications rely heavily on keyboard event handling for everything from form validation to real-time collaboration tools. This keycode lookup utility eliminates guesswork by displaying the physical key code, logical key value, location identifier, and all modifier states (Shift, Ctrl, Alt, Meta) the moment a key is pressed, with nothing to install or configure.

Unlike static keycode reference tables, this live JavaScript key event tester captures real browser events so you can verify behavior across different operating systems and keyboard layouts. It also clearly marks which properties are deprecated, helping you write future-proof code that follows current W3C Keyboard Event standards.