I am using e.keyCode || e.which; to determine which key was pressed, but I am getting 65 for both a and A why is this happening and ho
e.keyCode || e.which;
a
A
keyCode won't indicate which character was input. To truly find the character last entered by the user you will need to examine the value of the input and find the last character.