Skip to content
hateitall

Keyboard Event Tester

See exactly what the browser reports for each key, so your shortcuts work on every layout.

Processed locallyIn: KeyboardOut: Report, JavaScript

Loading tool…

How to use keyboard event tester

  1. Click or tap the box to focus it.

  2. Press a key or a combination such as Ctrl+Shift+K.

  3. Read key, code, keyCode, location, repeat and modifiers.

  4. Copy the shortcut in Mac or Windows style, or the JavaScript handler for that exact combination.

What this tool does

  • Shows the layout-aware event.key next to the physical event.code.
  • Tells left and right modifiers and numpad keys apart through event.location.
  • Lists every key held at once, which shows keyboard rollover limits.
  • Keeps a log of keydown and keyup events with timestamps.

How the result is verified

Values are taken straight from the browser's KeyboardEvent, so they are what your own code will receive in this browser.

Frequently asked questions

Should I use event.key or event.code?

Use event.code for physical positions, such as WASD controls that should not move on an AZERTY keyboard. Use event.key for shortcuts tied to a letter, such as Ctrl+S.

Is keyCode still safe to use?

It still works but is deprecated and inconsistent across layouts. It is shown here for old code you may be maintaining.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Screen, viewport, preferences and supported web features of this browser

None→ ReportLight on device

Read browser, engine, OS, device and bot from a User-Agent string

Text→ ReportLight on device

Send GET, POST, PUT, PATCH and DELETE requests from your browser

URL · JSON · Text +→ ResponseModerate on device

Explain cron schedules in plain English and preview the next 10 runs

Text→ ReportLight on device