JSFiddle - React, Tailwind, and code Playground
HTML
Press a key while focusing this window. Then look at the console to see if it matches.
JavaScript
$(document).keypress(function(e)
{
var s = String.fromCharCode(e.which);
if (s.match(/[a-zA-Z\.]/))
console.log(s + ' is a match!');
});