made the settings menu close on escape press only if not online