Keyboard Keycodes

// Press any key to see its keyCode, key, and code values

Press any key to see its properties
Click here first if not focused
Common Key Codes Reference
13Enter
9Tab
27Escape
32Space
8Backspace
46Delete
38ArrowUp
40ArrowDown
37ArrowLeft
39ArrowRight
16Shift
17Control
18Alt
91Meta
20CapsLock
112F1
113F2
114F3
115F4
116F5
117F6
118F7
119F8
120F9
121F10
122F11
123F12
36Home
35End
33PageUp
34PageDown
45Insert

#About Keyboard Keycodes

Free online keyboard keycode tester. Press any key to instantly see its JavaScript keyCode, key, code, and which values. Essential for keyboard event handling. This tool runs entirely in your browser — your data is never sent to a server. Just paste your input, get instant results, and copy with one click. No sign-up or installation required.

#FAQ

What is the difference between keyCode, key, and code?
keyCode is a deprecated numeric value for the key. key returns the character value (e.g., "a", "Enter"). code returns the physical key identifier (e.g., "KeyA", "Enter") regardless of keyboard layout. Use key or code instead of keyCode in modern code.
Why is keyCode deprecated?
keyCode is deprecated because its values are inconsistent across browsers and keyboard layouts. The key and code properties provide more reliable and descriptive values for handling keyboard events.
</> Embed this tool

Copy this code to embed the tool on your website. Adjust the height to fit your layout.

<iframe src="https://www.browserutils.dev/embed/keyboard-keycodes" width="100%" height="500" frameborder="0" title="Keyboard Keycodes"></iframe>

#Related