Keycode Info
NOUVEAUPress any key to see its event.key, event.code, keyCode, location and modifiers, with copy-ready JavaScript snippets and a history of your last 10 keys.
Fonctionne à 100 % dans votre navigateur — vos données ne sont jamais envoyées ni stockées sur nos serveurs.
Cet outil n'est pas encore entièrement traduit : une partie du texte est encore en anglais. L'outil lui-même fonctionne de la même façon dans toutes les langues.
Keys are captured only while this box is focused. Tab and Ctrl/Cmd shortcuts still work normally, and Escape releases the box.
Last 10 keys
No keys captured yet.
Exemples rapides
Des entrées typiques et les résultats produits par cet outil.
Présentation
Keycode Info shows what the browser reports for every key you press: event.key (the character or name), event.code (the physical key), the deprecated keyCode and which numbers, the location (standard, left, right or numpad), the modifier keys held and whether the press is an auto-repeat.
Developers use it to write keyboard shortcuts, game controls and form handlers without guessing values. Each key comes with ready-to-paste conditions such as event.key === 'Enter'. Keys are captured only while the box is focused, so normal shortcuts on the rest of the page keep working. Press Escape to leave the box, and Tab still moves focus on.
Pourquoi utiliser cet outil ?
- Get the exact event.key and event.code for any key
- Copy a ready-made if or switch condition
- Tell physical keys (code) from typed characters (key)
- Keyboard accessible: Escape and Tab always leave the box
Fonctionnalités
Live key details
key, code, keyCode, which, location, modifiers, repeat and isComposing for every press.
Copy-ready snippets
Conditions for key, code, switch cases and held modifiers, one click each.
Deprecated flags
keyCode and which are marked as deprecated so you pick the modern properties.
Last 10 keys
A short history table to compare how different keys report.
No keyboard trap
Escape releases the box, Tab moves on, Ctrl and Cmd shortcuts still work.
Stays local
Key presses are read in your browser and never sent anywhere.
Mode d'emploi
Focus the box
Click the capture area, or Tab to it. The border turns blue when it is listening.
Press a key
Press any key or combination. Its details appear at once.
Copy a snippet
Choose the condition you need and press Copy to paste it into your code.
Leave the box
Press Escape or Tab to return to normal page keyboard use.