index.js
function clean(type, options) {
  options = assign({}, defaults, options);
  if (type === 'dblclick') {
    options.detail = 2;
  }
  if (isString(options.key)) {
    options.key = keycode(options.key);
  }
  return options;
}
function clean(type, options) {
  options = assign({}, defaults, options);
  if (type === 'dblclick') {
    options.detail = 2;
  }
  if (isString(options.key)) {
    options.key = keycode(options.key);
  }
  return options;
}
function clean ( type , options ) { options = assign ( { } , defaults , options ) ; if ( type === 'dblclick' ) { options . detail = 2 ; } if ( isString ( options . key ) ) { options . key = keycode ( options . key ) ; } return options ; }
Back an `options` object by defaults, and convert some convenience features.

@param {String} type
@param {Object} options
@return {Object} [description]
Back an options object by defaults and convert some convenience features .