Instant JavaScript Keycode Finder
Press any key to instantly fetch its JavaScript `event.key`, `event.code`, and legacy `keyCode`.
STEP 1
Click anywhere on this page to focus it.
STEP 2
Press any key (or combination of keys) on your keyboard.
STEP 3
Click any generated value below to copy it.
Press any key...
event.keyCode
65
event.key
-
event.code
-
event.location
-
Waiting for keyboard input.
Why Use JustKeycode?
Handling keyboard events in JavaScript can be confusing due to legacy API properties. `event.keyCode` is technically deprecated but still widely used in older codebases. Modern best practices dictate using `event.key` (the actual character generated) or `event.code` (the physical key on the keyboard, regardless of language layout). JustKeycode gives you all three in real-time.