Skip to content
Toolbento

Keyboard event inspector

Press any key to see its key, code, keyCode, location and modifiers, as JavaScript receives them.

Everything stays on this device

Keyboard event inspector runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

Press a key

Click here

Then press any key. Tab moves on.

Event values

  • event.key
    (none)
  • event.code
    (none)
  • event.keyCode
    (none)
  • Location
    (none)
  • Modifiers
    (none)
  • Held down
    (none)

Missing a feature or found a bug in Keyboard event inspector? Tell me on X (@_andrewtran) or by email.

How to use Keyboard event inspector

  1. Select the capture box.
  2. Press any key or key combination.
  3. Copy the value you need, such as event.code.

Questions and answers

Is my data sent anywhere?

No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.

What is the difference between key and code?

key is the character the press produces, so it follows the keyboard layout. code names the physical key, and is the same on every layout.

Why can some shortcuts not be captured?

The browser and the system keep a few for themselves, such as closing the tab. Tab is also left alone, so the keyboard can always leave the box.

Esc

Loading tools