code: function (mode) {
  			var keyModes = this._keyModes;
  			for (var i=0; i<keyModes.length; i++) {
  				if (keyModes[i] === mode) {
  					keyModes.splice(i, 1);
  					break;
  				}
  			}
  			//TODO: API needed for this
  			if (mode._modeRemoved) {
  				mode._modeRemoved();
  			}
  		}
docs: Removes a key mode from the text view.
  
  @param {orion.editor.KeyMode} mode the key mode.