Keycode Info
NOVOPress 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.
Funciona 100% no seu navegador — o que você insere nunca é enviado nem armazenado nos nossos servidores.
Esta ferramenta ainda não está totalmente traduzida, por isso parte do texto continua em inglês. A ferramenta funciona da mesma forma em todos os idiomas.
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.
Exemplos rápidos
Entradas típicas e os resultados que esta ferramenta gera.
Visão geral
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.
Por que usar esta ferramenta?
- 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
Recursos
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.
Como usar
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.