JSFiddle - React, Tailwind, and code Playground

HTML

<input id="target" type="text" />

JavaScript

$(document).keydown(function(e) { 
if (e.keyCode == 8) 
{
return false; 
}
});