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