JSFiddle - React, Tailwind, and code Playground

HTML

<button id="btn" >Click me</button>

JavaScript

$("#btn").click(function(event) {
    if (event.shiftKey) {
       alert("Shift key is pressed");
    } 
});