Reading the results
Key, code, repeat, and layout
- Key is the character or action your active keyboard layout produced.
- Code identifies the physical key position, such as KeyA or NumpadEnter.
- Repeat becomes active when the operating system sends more keydown events while a key is held.