Reference

XKeyEvent(3) on Linux

The text db1a983e2e96, as Debian 4.0 (Etch) shipped it.

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

XKeyEvent(3) on Linux now