7 : 0);
    key.setAttribute("z", keyType === "black" ? 0 : 0);
    key.setAttribute("collision-interval", 50);
    pianoKeysGroup.appendChild(key);
    key.addEventListener("click", (e) => handleClickOnKey(id));
    key.addEventListener("collisionstart", ({ detail }) =>
      handleCollisionEnter(id, detail.connectionId),
    );
    key.addEventListener("collisionmove", ({ detail }) =>
      handleCollisionEnter(id, detail.connectionId),
    );
    key.addEventListener("collisionend", ({ detail }) =>
     