JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" id="btnClick" value="button">
JavaScript
jQuery(function($){
$('#btnClick').click(function(e){
var c = $.Event("keypress");
c.keyCode = 65;
c.ctrlKey = true;
c.shiftKey=true;
$(document).trigger(c);
// to view keypress on console use below:
$(document).keypress(function(x){
console.log(x);
var evt = jQuery.Event("keypress");
evt.keyCode = 100; // d
evt.ctrlKey = true;
$(document).trigger(evt);
});
});
});