JSFiddle - React, Tailwind, and code Playground
HTML
<span>press alt + W</span>
JavaScript
$(window).keydown(function(e)
{
//Alt + w
if(e.shiftKey && e.which === 87)
{
$("span").text("combitation detected");
e.preventDefault();
}
});
$(window).keyup(function(e)
{
if(!e.shiftKey )
{
$("span").text("combitation stop");
e.preventDefault();
}
});