JSFiddle - React, Tailwind, and code Playground

JavaScript

$(document).on("keydown", function(event){
    console.log("Control: " + event.ctrlKey);
});