function engine.KeyPressed(key) if (key == KEY_ESCAPE) then engine.Close() end end