there is just a fundamental race condition here. we only store the most recent HID frame and we read that frame value at a limited rate. we can increase that rate but will always be able to drop frames if they come in fast enough.
it’s entirely possible that the Race 3 sends multiple HID frames on every keypress to avoid ghosting (or something.) this might be most easily diagnosed by using hexdump or evtest with the device on linux.
the only solution would be to maintain a queue of incoming HID data, instead of a single value and dirty-flag.
i know mechanical keyboards are cool and all, but honestly this system (HID driver libavr32) was never designed to handle rapid typing - it was added to aleph codebase almost as an afterthought.