Skip to content
OddsockLocal

Keyboard inspector

Key, code, location and modifiers for every press.

Runs in this browser. Nothing is uploaded.

How to use

  1. Click the test field. The placeholder says to press keys there.
  2. Press a key or a shortcut. Read Key, Code, Modifiers, Location and Repeat.
  3. Watch Held keys while you chord. Release a key and it leaves the list.
  4. Press Clear key details to reset. Tab moves focus out. A system shortcut may never show up.

What is Keyboard inspector?

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.

Read more

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.

Use cases

  • A shortcut is wrong and you need Code KeyK rather than the character K, because the layout and the physical key disagree.
  • Left Shift and right Shift should show different locations before a game binding treats them as one key.
  • A held key should show Repeat Yes on the later events, so a stuck repeat is visible.
  • You want to confirm Tab leaves the field, instead of being captured like the letter keys.

Shift and the K key

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.

Why use Oddsock

Code and Key are different rows. The character follows the layout. The code follows the key position. Shortcuts that mix them up feel random.

Related tools

Using this tool

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.