addHook("ThinkFrame", function() for player in players.iterate if player.cmd.buttons & BT_CUSTOM1 then G_ExitLevel() end end end)