scancodes
Scancodes are the numeric codes produced by a computer keyboard to report key presses and releases to the host computer. When a key is pressed, the keyboard transmits a make code; when the key is released, it transmits a break code. These codes are the lowest-level representation of keyboard input and are largely independent of character encoding.
In PS/2 and early PC keyboard architectures, several scancode sets exist, notably Set 1, Set 2, and
Programming interfaces or firmware translate scancodes into higher-level events, such as ASCII characters or OS-specific key
With USB keyboards, devices now use the HID (Human Interface Device) protocol and report usage IDs rather