pub const KEY_RELEASED_OFFSET: u8 = 128;
Expand description

The offset that a keyboard adds to the scancode to indicate that the key was released rather than pressed. So if a scancode of 1 means a key foo was pressed, a scancode of 129 (1 + 128) means that key foo was released.