issue with pauseGUI switch to menu resolved by implementing onReleased instead of onPressed events with pauseGUI menuButton