JSFiddle - React, Tailwind, and code Playground

HTML

Click in this frame, then try holding down the control key
<br />
<br />
<div id="ctrl"></div>

JavaScript

$(document).keydown(function (e) {
    if (e.ctrlKey) {
        $('#ctrl').text("true");
    } else {
        $('#ctrl').text("false");
    }
});