JSFiddle - React, Tailwind, and code Playground

HTML

<div id="text"></div>
<textarea id="stuff"></textarea>

JavaScript

$("#stuff").keypress(function (e) {
    $("#text").text($("#stuff").val());
    if (e.keyCode == 65) { e.preventDefault(); }
});