Key means the produced character
event.key is the character or function name the browser produces. On a different layout the same physical key can produce a different key value.
This workspace combines the visual keyboard with a detailed event sheet and a per-key counter. Press each key once and read exactly what the browser reports.
event.key is the character or function name the browser produces. On a different layout the same physical key can produce a different key value.
event.code names the physical position such as KeyA or ShiftLeft. It stays stable across layouts and is the best label for hardware diagnosis.
Hold Shift, Ctrl, Alt, or Meta and press a letter to see the modifier state. Some combinations are reserved by the browser and will never reach the page.
It displays "Space" with a note that the value is a single space character.
Media keys, Fn keys, and some system-reserved keys may produce an empty value or no event in a browser.
event.code represents the physical key position, like KeyA, while event.key is the character produced, such as 'a' or 'A'. This distinction helps identify keys regardless of keyboard layout or modifier state.
Press multiple keys at once and each one updates independently in real time. The tool shows each key's modifiers, location, and press count, letting you check rollover and confirm all keys register correctly.
Location identifies which physical area of the keyboard the key came from: 0 is standard, 1 is left modifier, 2 is right modifier, and 3 is the numpad. This is useful for distinguishing left Shift from right Shift or Ctrl.