JSFiddle - React, Tailwind, and code Playground

HTML

<p>Click over here to get the focus to the fiddle's iframe</p>
<p>Now open the dev tools and try using the keyboard shortcuts</p>

JavaScript

['cut', 'copy', 'paste'].forEach(function(event) {
    document.addEventListener(event, function(e) {
        console.log(event);   
    });
});