code: function setSlotKey(slot, key) {
                      slot.key = key;
  
                      // Add the slot to the keyMap, so it is possible to quickly find the slot given its key
                      keyMap[slot.key] = slot;
                  }
docs: Keys and Indices