Fixed bug where certain characters weren't showing up in text input fields on ios + android.

Bug is due to mobile devices reporting only the ASCII character codes and not the keyboard scan codes like desktop + flash. Treating the ASCII codes as scan codes causes conflicts (eg. periods being treated as DELETE).

Added a translation function to convert ASCII codes on mobile to their keyboard scan code equivalents.