I wasn't able to get this to work. Do I need to use CNTRL + C?
> document.addEventListener('keydown', function(event) { ... })
Basically, press any key on your keyboard on the website, and it'll work.
It may also be because you have no support for execCommand if it didn't work for CTRL+C.