Key, code, location and modifiers for every press.
Runs in this browser. Nothing is uploaded.
Keyboard tester reports the event the browser actually delivered, which is not always the character you expected. Focus the test field and press a key. The rows are the event direction, the key, the code, the modifiers, the location and whether the event is a repeat from holding the key down. A lowercase k with Shift held is Key K, Code KeyK, Modifiers Shift, Location Standard, Repeat No, on the key-down event. Space is labeled Space, not an empty cell. Location is Standard, Left, Right or Numpad, so a left Shift and a right Shift are different codes even when the key text matches.
Held keys lists what is still down, by physical code, joined with plus signs. Releasing a key removes it. Tab is special: the field does not swallow Tab, so focus can leave. Other keys are prevented from doing their usual editing, because the field is only a probe. Blur clears the held list, so alt-tabbing away does not leave a stuck modifier.
System shortcuts may never reach the page. The browser, the operating system or this site’s own search may take them first. Outside the test field, Command-K or Ctrl-K opens tool search, and slash does too when you are not in a text field. Clear key details wipes the rows. The page cannot see a keyboard it does not have focus on.
Focus the test field. Hold Shift. Press K.
Event Key down. Key K. Code KeyK. Modifiers Shift. Location Standard. Repeat No. Held keys includes Shift’s code and KeyK while both are down.
Code and Key are different rows. The character follows the layout. The code follows the key position. Shortcuts that mix them up feel random.
Key is the character or the named key, such as K or Space. Code is the physical key, such as KeyK or ShiftLeft. A different keyboard layout changes Key and leaves Code alone.
Focus leaves the field. Other keys are kept from typing into the box, because the box is a probe and stays empty.
The operating system or the browser handled it before the page could. Command-K and Ctrl-K outside the field open tool search on this site.
Yes when the browser is sending the key again because you are holding it down. The first press is No.