JSFiddle - React, Tailwind, and code Playground

by jquerybyexample

HTML

<input type="text" id="txtNumbers" />

JavaScript

$(document).ready(function(){ 
$("#txtNumbers").keydown(function(event) {
     if(event.shiftKey)
     {
        alert('You have pressed Shift Key.');
        event.preventDefault();
     }
   });
});