1001Ferramentas
⌨️ Dev

Keycode Info

Press any key and see `event.key`, `event.code`, `keyCode`, `which` and `location`. Useful to build shortcuts, games and keyboard-aware forms. Everything in your browser.

Pressione qualquer tecla com este painel em foco.

event.key
event.code
event.keyCode (legacy)
event.which (legacy)
event.location
Modificadores

Find any key's code

Anyone programming keyboard interactions in JavaScript needs to know exactly which values each key fires. The tool shows that right on screen: press any key and the event's fields all appear together, event.key, event.code, keyCode, which and location.

For building shortcuts, games that react to the keyboard, forms with custom navigation or any feature that captures keys, this is fundamental. Rather than checking outdated tables (keyCode, for instance, is already deprecated), you see the real values the browser delivers for that specific key.

It runs entirely in the browser, with nothing to install. It works as a living reference for front-end developers to debug keyboard events precisely.

Related Tools