Tools/Keyboard Event Inspector
DevOps & Dev Utilities

Keyboard Event Inspector

Press any key on your keyboard to see exactly what JavaScript receives — key, code, keyCode, location, and active modifiers.

Free & unlimitedRuns in your browserNo sign-up required
How it works

Three steps, no setup

1

Press a key

Any key, including modifiers and function keys.

2

Read the event properties

See key, code, keyCode, location, and which modifier keys were held.

3

Use it for keybinding logic

Confirm exactly what your app receives before writing a shortcut handler.

Common questions

Frequently asked questions

What is the difference between key and code?
"key" reflects the character produced (layout-dependent), while "code" reflects the physical key position regardless of keyboard layout.
Is keyCode still relevant?
It is deprecated in favor of key and code, but some older codebases still reference it, which is why it is shown here too.
Chat with us
Usually replies in minutes