Track when paste events occur

I have added code to track when paste events occur.