JSFiddle - React, Tailwind, and code Playground

HTML

<input>

JavaScript

$('input').on('keydown', function(e) {
    var key = String.fromCharCode(e.which);
    if (key === 'A') e.preventDefault();
});