I am simply listening for a keyup event of an input element and gather the results into a string like so
word=word+String.fromCharCode(key.keyCode);
The problem is that the word is in capital letters while I want it to be case-sensitive. For example if I type abcef my accumulated word becomes 'ABCEF' .
Note - I need a pure javascript solution (no libraries..) Any thoughts?