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.