XQuartz allows us to run X applications on macos. That's particularly useful when we have a remote headless Linux machine - just ssh -X
into the machine and then the GUI for any X application launched will appear on the local Mac.
This all works pretty seamlessly, with a shared clipboard and rootless windows. Keyboard shortcuts and mouse actions all work fine, except one:
Ctrl-left arrow and Ctrl-right arrow are the usual X shortcuts for moving the cursor left and right one word.
By default these wont work in XQuartz, and in particular if you don't have multiple Mission Control spaces, it will appear to fail silently.
How do you get the Ctrl-left and Ctrl-right keyboard shortcuts to work in X applications running in XQuartz?