JSFiddle - React, Tailwind, and code Playground

by techiedelight

HTML

<p>
  Press Alt + X
</p>

JavaScript

$(document).keydown(function(event) {
  if (event.altKey && event.which === 88) {
    alert('Alt + X pressed!');
    e.preventDefault();
  }
});