The KEY_CMD for macOS is a bit tricky and indeed, it does not work for all key combinations on Mac. Fixing/improving this is on our todo list for the next XTYPE update.
Workarounds:
-
Call a script that simulates this key press: I really need spacebar to work with XType or otherwise (Workaround availabe) - #2 by admin
-
Instead of sending this keystroke, use XClick to press a button that triggers the same dialog (if such a button exists).