public void keyReleased(KeyEvent keyEvent){
        if(keyEvent.getKeyCode()== KeyEvent.VK_K)
        {
            if(bNivel1){
                bSelecc = !bSelecc;
                bNivel1 = !bNivel1;
            }
        }
        if(keyEvent.getKeyCode() == KeyEvent.VK_P) 
        {
            if(bNivel1){
                bPausa = true;
                bNivel1 = !bNivel1;
                N1 = true;
            }
            if(bNivel2){
                bPausa = true;
                bNivel2 = !bNivel2;
                N2 = true;
            }
            if(bNivel3){
                bPausa = true;
                bNivel3 = !bNivel3;
                N3 = true;
            }
        }
    }