Fixes missing keycodes, cleans up & sorts existing ones.

 An essential/prerequisite commit for further Input improvements, e.g. #2524