@Override
    public void keyPressed(KeyEvent e) {

        int key = e.getKeyCode();
        if (key >= 37 && key <= 40) {
            reqDir = key;

        }
        if (START) {
            if (key == KeyEvent.VK_P) {
                if (PAUSE) {
                    PAUSE = false;
                } else {
                    PAUSE = true;
                }
            }
        }
        if (key == KeyEvent.VK_S) {
            START = true;
        }

    }