JSFiddle - React, Tailwind, and code Playground
HTML
<button id="ref">Open Inspect Element</button>
JavaScript
$('#ref').click(function() {
$('body').trigger(jQuery.Event('keydown', { shiftKey: true, ctrlKey: true, keycode:73 }));
});
<button id="ref">Open Inspect Element</button>
$('#ref').click(function() {
$('body').trigger(jQuery.Event('keydown', { shiftKey: true, ctrlKey: true, keycode:73 }));
});