set maxLength(length) {
    this._maxLength = length;
    this._trimHistory();
  }
Sets a new maximum length for the key combination history. Once the number of
key combinations exceeds this length, the oldest is dropped.
@param {Number} length New maximum length of the key history