static setBit(record, index, keyEventState) {
    record[index] = keyEventState;

    return record;
  }
Sets a bit in the map to true
@param {KeyEvent} record Map to set a bit to true
@param {KeyEventType} index Index of bit to set
@param {KeyEventState} keyEventState The state to set the key event to