JSFiddle - React, Tailwind, and code Playground

HTML

<textarea id="output1"></textarea>

JavaScript

$(document).ready(function() {
    $(document).bind('keydown', function(e) {
        if (e.keyCode == 116) {
            e.preventDefault();
            e.originalEvent.keyCode = 0; // this line required for IE7
                                         // comment it out, Run, and press F5                                                     // in  Result's                
                                         // text area...instead of seeing a t appear
                                         // in the textarea, you will see your IE7
                                         // browser refresh 
        }
        $('#output1').val(String.fromCharCode(e.keyCode));
    });
});