Fixed issue with keyup and mouse events.
When jQuery is defined, an event is not
an instance of a DOM event.
So now instead of checking if the event
is an instance of a DOM event, I check
if it's defined and then its type.
Version 0.1.3