function MenuKeyPressed(key) if key == "escape" then love.event.quit() end if key == "space" then --Change state to GAME! GAMESTATE = "GAME" end end