Reference

XKeyEvent(3) on Linux

The text 1ef06685039d, as Debian 8 (Jessie) shipped it.

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

XKeyEvent(3) on Linux now