That worked, thanks so much!
One related question: since I usually use Windows, I have modified the keyboard that I use with my Mac to switch the CMD and CTRL keys – is there a way to switch this off within NoMachine (so that when I hit the CTRL key it actually corresponds to CTRL instead of CMD).