 handleCollisionLeave(id, detail.connectionId),
    );
    keyboard.set(totalKeys, {
      id: totalKeys,
      key: key,
      playersColliding: new Set(),
      isPressed: false,
      color: keyType === "black" ? "black" : "white",
    });
    createNote(xPosition, 0);
    totalKeys++;
  }

  function handleCollisionEnter(id, connectionId) {
    const keyObject = keyboard.get(id);
    if (!keyObject.playersColliding.has(connectionId)) {
      keyObject.playersColliding.add(connectionId);
    }

    // Up