JSFiddle - React, Tailwind, and code Playground
HTML
Press a key while focusing: <input type="text" id="LearnStart" />
JavaScript
$('#LearnStart').keypress(function(e)
{
var s = String.fromCharCode(e.which);
if (s.match(/[a-zA-Z\.]/))
console.log(s + ' is a match!');
});