Added hook on paste event to search for the pasted input.

Added support for paste event that didn't work on Mac OSX (it worked with Windows and Linux though). Now it works on every OS.
I'm already calling a method from another event handler, it's just delegated in a ScheduledCommand. I'm not sure I understand your suggestion.