This backport:
23da6c24 keybindings: Check the special modifiers specifically 61356caa keybindings: Mask out the reserved modifiers mask
to the 3.34 branch.