Reference

XKeyEvent(3) on Linux

The text 7f05efccf78a, as Debian 13 (Trixie) shipped it.

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

XKeyEvent(3) on Linux now