JSFiddle - React, Tailwind, and code Playground

by mamounothman

JavaScript

function KeyPress(e) {
      var evtobj = e;
      //alert(e.keyCode);
      if (e.keyCode == 77 && e.ctrlKey) alert("Ctrl+z");
}

document.onkeydown = KeyPress;