Key code lookup

Press a key and read its event.key, event.code, location, and modifiers.

Click the box and press any key

Press a key…

Runs in this browser. The key you press never leaves the page.

Shows the DOM keydown event this browser produces. OS-level or IME-swallowed keys may not reach the page; values can differ between browsers and layouts.

How to use

  1. Focus the capture box.
  2. Press any key.
  3. Read the DOM event values.

What it supports

Shows the keydown event values this browser produces. Keys swallowed by the OS or IME may not reach the page; values differ across browsers and keyboard layouts.

Related tools

Related guides