Back button pauses the game if pressed once, and quits if pressed a second time