public void keyPressed(KeyEvent keyEvent) {
        if(keyEvent.getKeyCode() == KeyEvent.VK_LEFT) {
            iDireccionCanasta = 1;
        }
        if(keyEvent.getKeyCode() == KeyEvent.VK_RIGHT) {
            iDireccionCanasta = 2;
        }
        if(keyEvent.getKeyCode() == KeyEvent.VK_P) {
            // si no estan las intrucciones
            if (!bInstrucciones){
                bPausado = !bPausado;
            }
        }
        if(keyEvent.getKeyCode() == KeyEvent.VK_I) {
            // si no esta pausado
            if (!bPausado){
                bInstrucciones = !bInstrucciones;
            }
        }
        
    }