JSFiddle - React, Tailwind, and code Playground

HTML

<div class="fixedValue">
    <input type="text">
</div>

JavaScript

$(document).ready(function(){
    
$("body").on("keydown", ".fixedValue:not(input)", function (e) {
    e.preventDefault();
    console.log("the div (which is not input?) was triggered.");
    
    $(".fixedValue input").trigger("keydown", e.keyCode);
});

$(".fixedValue input").on("keydown", function (e) {
    e.stopPropagation();
    console.log("input (e.g. not the div) triggered.");
});

});