add support for cut/paste events

A short delay (currently 50ms) is required after the paste event for the
pasted text to enter the textbox.  Then we can trigger a `keyup` event as if
that copy had just been typed into the box manually.
Merge pull request #1603 from daveworth/1601/support_paste_events

Add support for paste events