JSFiddle - React, Tailwind, and code Playground

HTML

<textarea id="checkMetaKey"></textarea>
<div id="display"></div>

JavaScript

$( "#checkMetaKey" ).keyup(function( event ) {
  $( "#display" ).text(event.metaKey + " " + event.keyCode);
});