Keycode Checker
Free online keycode checker tool, real-time detection
Press any key...
What are KeyCodes?
KeyCodes are numeric values assigned to keyboard keys, used in JavaScript event handling (event.keyCode, event.key, event.code). This tool helps developers find the exact key values they need when implementing keyboard shortcuts, game controls, or form validation.
How to Use the Keycode Checker
Press any key on your keyboard to see its properties: keyCode (numeric), key (character value), code (physical key identifier), and modifier states (Shift, Ctrl, Alt). Recent key presses are shown in the history.
▶Is keyCode deprecated?
Yes, event.keyCode is deprecated in favor of event.key and event.code. However, many legacy codebases still use it. For new code, prefer event.key for character input and event.code for physical key position.
▶What is the difference between key and code?
event.key returns the character produced (a, A, 1). event.code returns the physical key position (KeyA, Digit1). This matters for non-QWERTY layouts where the same physical key produces different characters.