JSFiddle - React, Tailwind, and code Playground

HTML

<div id="hola"></div>

JavaScript

$(function(){
    var press = jQuery.Event("keyup");
    press.ctrlKey = false;
    press.which = 40;
    
    $('#hola').keyup(function(e){
            
        alert(e.which);
    }).trigger(press);
});