ction createHtmlPiano() {
          const createDomElement = (frequency, note, octave) => {
            let domElement = document.createElement('div');
            domElement.setAttribute('data-note', note);
            domElement.setAttribute('data-octave', octave);
            domElement.setAttribute('data-frequency', frequency);
            if (note === 'C')
              domElement.innerHTML = `<span>${note}<sub>${octave}</sub></span>`;

            const keyPressed = (e) => {
              domElement.c