Also handle clipboard events

If you paste or cut text — especially if you don’t use the keyboard to do so — then the output may not update.

This fixes this issue
Merge pull request #98 from alanhogan/patch-1

Also handle clipboard events