public void tick() {
        up = keys[KeyEvent.VK_W] || keys[KeyEvent.VK_UP];
        left = keys[KeyEvent.VK_A] || keys[KeyEvent.VK_LEFT];
        down = keys[KeyEvent.VK_S] || keys[KeyEvent.VK_DOWN];
        right = keys[KeyEvent.VK_D] || keys[KeyEvent.VK_RIGHT];

        music = keys[KeyEvent.VK_M];

        if (music && !musicKeyPressed) {
            if (Game.song.isPlaying()) {
                Game.song.pause();
            } else {
                Game.song.resume();
            }
            musicKeyPressed = true;
        }

        if (!music) {
            musicKeyPressed = false;
        }
    }