function pressed(key) {
      return keys.indexOf(key) !== -1;
    }
Triggers a browser event. Attempts to choose the right event if one is
not specified.

@param {Object} element Either a wrapped jQuery/jqLite node or a DOMElement
@param {string} eventType Optional event type
@param {Object=} eventData An optional object which contains additional event data (such as x,y
coordinates, keys, etc...) that are passed into the event when triggered