@Override
    public void keyPressed(KeyEvent keyEvent) {
        if (!bPausa) {
            if (keyEvent.getKeyCode() == KeyEvent.VK_LEFT) {
                iDireccion = 1;
            }
            if (keyEvent.getKeyCode() == KeyEvent.VK_RIGHT) {
                iDireccion = 2;
            }
        }
    }