Properly translate key codes. AH-564
Remove unused support for key names. AH-564
Fix broken tests.