So I know that we can find if a key was pressed, and we can know which key was pressed by using javascript.
To determine if a key was down or pressed we can just use jQuery
$( "#some id" ).keydown(function()
or
$( "#m" ).keypress(function()
But this does not work pretty good for me. I am trying to determine if a letter, or a number were pressed.
BUT, to be efficient, I don't want to check with a big if (or a for loop, worse) whether the key pressed was a letter or a character(by comparing and checking the character code)
Is there like a built in javascript function that determines if a number was pressed or a letter was pressed? is there an efficient way of doing this? or I am just overcomplicating things?