JSFiddle - React, Tailwind, and code Playground

HTML

<body>
    <input type='checkbox' id='testBox'>
</body>

JavaScript

var body = $(document.body);
var input = $('#testBox');

body.on('click', function(e) { 
    e.stopPropagation();
    console.log('body', e.shiftKey);
});
input.on('click', function(e) { 
    e.stopPropagation();
    console.log('input', e.shiftKey);
});

var clickEvent = $.Event('click', { shiftKey: true });

body.trigger(clickEvent);
input.trigger(clickEvent);