Reference

XKeyEvent(3) on Linux

The text 52ae671b2601, as Debian 10 (Buster) shipped it.

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

XKeyEvent(3) on Linux now