Skip to content

Keycode Viewer

Show key code and key values for any keypress

Updated

What is the Keycode Viewer?

How it works

Examples

Detect letter key press

Press the "A" key on your keyboard
Key: "a", Code: "KeyA", keyCode: 65, Location: Standard

Identify function key codes

Press the "F1" function key
Key: "F1", Code: "F1", keyCode: 112, Location: Standard

Check modifier key combinations

Press Ctrl+Shift+K simultaneously
Key: "K", Code: "KeyK", Modifiers: Ctrl + Shift, Location: Standard

Distinguish left/right modifier keys

Press the left Shift key, then the right Shift key
Key: "Shift", Code: "ShiftLeft", Location: Left (1) / Right (2)

Debug numpad key events

Press the "5" key on the numeric keypad
Key: "5", Code: "Numpad5", keyCode: 101, Location: Numpad (3)

Frequently asked questions