Device guides

Distinguish a Windows Keypad Event From the Digit Row

·

When the digit row works and the numeric keypad behaves differently, compare the two reported positions. On Windows, Num Lock can change what the same keypad position means.

Windows Keyboard Tester

Compare the two keys labeled 1

Choose Windows full ANSI and Start keyboard test. Press and release the digit-row 1, then press and release keypad 1. If all four events reach the page, the latest event is the keypad release and the test shows two distinct records and maximum held 1.

Download windows-keyboard-report.json. Under keys, compare the keydown positions. Look for Digit1 at location 0 and Numpad1 at location 3. Recent events keep the raw location for each release. With Num Lock off the keypad key can be reported as End while its code still identifies the same position.

Compare the two keys labeled 1
Key usedExpected code when reportedLocation
Digit row 1Digit10 (Standard)
Keypad 1Numpad13 (Numpad)

Open Windows Keyboard Tester and compare digit 1 with keypad 1W3C UI Events physical keyboard code valuesW3C UI Events keyboard event fields and locations

Preview a keycap using the mouse or touchscreen

Select Simulate a key after the physical-key check, then click or tap the Left Win keycap. The status reads Simulated Win (MetaLeft). The two observed records from the prior test and the saved event history stay as they were.

Windows tenkeyless ANSI keeps the function, navigation and Win positions together without the numeric group. Selecting a diagram pauses the test. Start it again to capture new events.

Open Windows Keyboard Tester and compare digit 1 with keypad 1W3C UI Events physical keyboard code values

Interpret partial events and system shortcuts

Press and release each modifier separately first. Compare the left and right Win positions as MetaLeft and MetaRight when reported. If Recent browser events shows a release without a captured press, the prior keydown may have happened out of focus or been consumed earlier.

Windows reserves combinations such as Ctrl+Alt+Delete for system actions. Release held keys and restart the focused test after switching windows.

Microsoft Windows keyboard shortcutsW3C UI Events keyboard event fields and locations

Common questions

What do Scroll Lock and Num Lock indicate?

The indicators reflect the last browser event. An off or unsupported result can mean either that the lock was off or that the browser could not expose its state.

Can I compare a click to a real keypad press?

Simulation previews highlights while preserving the observed counts. Use the focused test when you want a press from the physical keyboard.

Sources and example

Put it into practice.

Related guides