JSFiddle - React, Tailwind, and code Playground
JavaScript
$(document).keydown(function(e) {
if(e.which == 8) { //-- or 13
alert('8');
}
});
$(document).keydown(function(e) {
if(e.which == 8) { //-- or 13
alert('8');
}
});