HohoTools

Keyboard Event Viewer

Press any key and see exactly what the browser sees.

How to use

  1. Press any key anywhere on the page — its event fields appear in the table instantly.
  2. Read the key, code and keyCode columns, then check which modifiers are highlighted.
  3. Press the left and right Shift, Ctrl or Alt keys and watch the location column change.
  4. Hold a key to watch the repeat flag, or type in the text box — keys focused there are never recorded.

Frequently asked questions

What is the difference between event.key and event.code?

key is what the press produces and follows your layout: on a French AZERTY keyboard the physical Q-row key reports key "a". code identifies the physical key regardless of layout — that same key is always code "KeyQ". Shortcuts that should keep their position across layouts usually listen to code.

Is keyCode deprecated?

Yes. keyCode comes from the early Internet Explorer era and was never formally standardized; the modern replacements are event.key and event.code. It is still shown because many legacy scripts, test fixtures and key lists speak the numeric dialect — and small differences between browsers are part of its legacy.

What does the location column mean?

It is the DOM KeyboardEvent.location value: 0 for the standard key, 1 for the left copy, 2 for the right copy and 3 for the numeric keypad. Pressing Left Shift and then Right Shift shows 1 and 2 side by side in the same column.

Are my keystrokes uploaded or stored?

No. The viewer listens in your browser and keeps the last ten presses in page memory only — nothing is sent anywhere and nothing is written to storage. Refreshing the page clears the history, and keys typed inside the input box are not captured at all.

Why is the modifiers cell highlighted on some presses?

Whenever Ctrl, Shift, Alt or Meta is held during a press, the combination is listed — and highlighted — in the Modifiers column, for example Ctrl+Shift. A plain press shows a dash, so combination keys stand out at a glance.

Related tools

About this tool

Press any key and see exactly what the browser sees. This keyboard event viewer captures every keydown on the page and lays out the raw event fields in a live table: the text-producing value from event.key, the physical key identity from event.code, the legacy numeric keyCode that older scripts and test suites still expect, the active modifier combination, the key location, and the auto-repeat flag. Modifier combos such as Ctrl+Shift or Alt+Meta are highlighted in their own column, and the location column tells the standard middle key apart from the left and right copies of Shift, Ctrl, Alt and the OS keys. The table keeps the ten most recent presses, newest first, so related keys can be compared side by side — Left Shift against Right Shift, the top digit row against the numpad, or a single tap against a held-down auto-repeating key. Use it to verify keyboard shortcuts, explain the difference between key and code, debug international layouts, or look up the keyCode an old library expects. Typing is never hijacked: keys pressed while the text box is focused are left alone. Everything runs locally — no keystroke ever leaves your device, and the history clears on refresh.