Keyboard Tester

Press any key to see its key code, location, and modifier states.

⌨️

Press any key to start testing

Keyboard Event Properties

key: The value of the key pressed

code: Physical key on the keyboard

keyCode/which: Deprecated but still used numeric code

location: Position of the key (Standard/Left/Right/Numpad)

Modifier Keys: Ctrl, Shift, Alt, Meta (Cmd/Win) states

repeat: Indicates if key is being held down