Reference

XKeyEvent(3) on Linux

The text 71ce4c0fb046, as Debian 9 (Stretch) shipped it.

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

XKeyEvent(3) on Linux now