@Override
    public void keyReleased(KeyEvent keyEvent) {
        
        if(keyEvent.getKeyCode() == KeyEvent.VK_LEFT || 
           keyEvent.getKeyCode() == KeyEvent.VK_RIGHT ){
            iDireccion = 0;
        }
        
        //si presiono P (Pausar)
        if(keyEvent.getKeyCode() == KeyEvent.VK_P) { 
            bPausado = !bPausado;
        }
        // si presiona G (save_file)
        if(keyEvent.getKeyCode() == KeyEvent.VK_G) { 
            try {
                grabaArchivo();
            } catch (IOException ex) {
                Logger.getLogger(JFrameBreakingBad.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        // si presiona G (save_file)
        if(keyEvent.getKeyCode() == KeyEvent.VK_C) { 
            try {
                leeArchivo();
            } catch (IOException ex) {
                Logger.getLogger(JFrameBreakingBad.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        
    }