ANSI keyboard layout test

The ANSI diagram shows a standard US-style board with a wide left Shift and a single-row Enter key.

Key bench · ANSI
Local only · no transmission

Event sheet

Local only
event.key Waiting for a key press
event.code Not recorded
location Not recorded
repeat No repeat detected
stuck No stuck keys
modifiers None

Privacy: key events are processed only in this tab and are never sent anywhere. Some combinations are reserved by the operating system or browser and cannot be captured by any web page.

Identify a horizontal Enter key

On a typical ANSI board, the main Enter key is a wide rectangle on one row. Look at the left Shift next. On a US QWERTY board, the next key to its right is Z. A UK keyboard with a tall Enter and a separate key between Shift and Z fits the ISO diagram better.

Press the main Enter key and read event.code in the Event sheet. It should show Enter. If your keyboard has a number pad, its Enter key normally reports NumpadEnter, even though both produce the same event.key. Use the physical shape to choose the diagram. The Enter event alone cannot distinguish ANSI from ISO.

Physical key positions in the W3C keyboard diagrams