I need to get localized character on keypress event. For example: on a Czech keyboard I need to get ř not 5 character (key code 53) (see Czech keyb
keypress
And make sure you are using 'keypress', but not 'keydown' event.
If you use 'keydown' String.fromCharCode(event.keyCode || event.which), it won't return you a localised character. At least this was an issue for me on OS X with Chrome / FF.
String.fromCharCode(event.keyCode || event.which)