Reference

XkbLockModifiers(3) on Linux

The text 7b82e5b988a8, as Debian 12 (Bookworm) shipped it.

Locks and unlocks any of the eight real keyboard modifiers

XkbLockModifiers(3) on Linux now