@Override
    public void keyReleased(KeyEvent e) {
        switch(e.getKeyCode()) {
        case KeyEvent.VK_SPACE:
            spacePressed = false;
            messageAdvanced = false;
            break;
        case KeyEvent.VK_W:
            wasdKeys[0] = false;
            break;
        case KeyEvent.VK_S:
            wasdKeys[1] = false;
            break;
        case KeyEvent.VK_A:
            wasdKeys[2] = false;
            break;
        case KeyEvent.VK_D:
            wasdKeys[3] = false;
            break;
        case KeyEvent.VK_UP:
            arrowKeys[0] = false;
            break;
        case KeyEvent.VK_DOWN:
            arrowKeys[1] = false;
            break;
        case KeyEvent.VK_LEFT:
            arrowKeys[2] = false;
            break;
        case KeyEvent.VK_RIGHT:
            arrowKeys[3] = false;
            break;
        default:
            break;
        }
    }