JSFiddle - React, Tailwind, and code Playground
HTML
<input>
JavaScript
// Press command and control
var $input = $("input").keydown(function( e ) {
console.log( "e.metaKey: %b, e.ctrlKey: %b", e.metaKey, e.ctrlKey );
return false;
});
setTimeout(function() {
$input.focus();
}, 1000);