thradtke wrote:What if a key up signal is lost (the root cause of repeating keys), but a subsequent key down signal (of a different key) arrives within the timeout? This wouldn't be an uncommon situation.
HID keyboard reports are not simple single key up/down messages. It is an array of up to 6 keycodes of currently pressed keys. So for your example scenario, when the next report arrives without the previously pressed keycode, the parser knows that the previous key has been released.