Thanks, unsetting the key worked. The keybinding to open the menu is Alt+Ctrl+0 (which I’ve understood is easily confused with AltGr+0 because NoMachine is not the first program to have had such a bug).
I think having Esc close the menu would be a good thing. Good idea.