Reference

XKeyEvent(3) on Linux

The text d5d889308a4a, as Debian 11 (Bullseye) shipped it.

KeyPress, KeyRelease, ButtonPress, ButtonRelease, and MotionNotify event structures

XKeyEvent(3) on Linux now