how to get keycodes of letters in javascript code example Example: corresponding text to key code js String.fromCharCode(e.keyCode)