`this.empty()` will clear keypressQueue, so you don't need to call `this._resetKeypressQueue(); ` here.