for event in pygame.event.get():
        if event.type == QUIT:
            pygame.quit()
            exit(0)
        if event.type == pygame.KEYDOWN:
            if event.key == K_ESCAPE:
                esc = True
            if event.key == pygame.K_DOWN:
                down = True
            if event.key == pygame.K_UP:
                up = True
            if event.key == pygame.K_RETURN:
                enter = True

        if event.type == pygame.KEYUP:
            if event.key == K_ESCAPE:
                esc = False
            if event.key == pygame.K_DOWN:
                down = False
            if event.key == pygame.K_UP:
                up = False
            if event.key == pygame.K_RETURN:
                enter = False

    SceneManager.current_scene.tick(up, down, enter, esc)
    SceneManager.current_scene.draw()
    SceneManager.check_for_switch()
    pygame.display.update()
    SceneManager.display.fill([0, 0, 0])