Added ability to close debug menu. Can now be switched on and off.