public void keyPressed(KeyEvent e) {
        int p = 0; //Current player.
        int keyCode = e.getKeyCode();
        switch (keyCode) {
            case KeyEvent.VK_UP:
                if (arrow[p].getValue() != Direction.DOWN)  //If you are going down you can't turn up, or you will die.
                    arrow[p].setDirection(Direction.UP);
                break;
            case KeyEvent.VK_DOWN:
                if (arrow[p].getValue() != Direction.UP)
                    arrow[p].setDirection(Direction.DOWN);
                break;
            case KeyEvent.VK_LEFT:
                if (arrow[p].getValue() != Direction.RIGHT)
                    arrow[p].setDirection(Direction.LEFT);
                break;
            case KeyEvent.VK_RIGHT:
                if (arrow[p].getValue() != Direction.LEFT)
                    arrow[p].setDirection(Direction.RIGHT);
                break;
        }
        //Synchronizer.setLastButtonPressed(arrow);
    }