 noteObject.note.setAttribute("pause-time", now + 2000);
  }

  function createKey(keyType, xPosition) {
    const fileName =
      keyType === "full" ? "white" : keyType === "black" ? "black" : `white_${keyType}`;
    const url = `/assets/playground/piano_key_${fileName}.glb`;
    const key = document.createElement("m-model");
    const id = totalKeys;
    key.setAttribute("id", id);
    key.setAttribute("src", url);
    key.setAttribute("x", xPosition);
    key.setAttribute("y", keyType === "black" ? -0.1