How to suppress editor shortcuts in play mode?

Thanks in advance.

If your game has focus the editor shortcuts should be overridden, for example I use space bar as a command and as long as focus is inside the game window it does not maximize the screen.