Mainly fixes for Japanese and Korean keyboard layouts.
Make sure it can map between the key codes of the local system in to the key codes used by the protocol.