fixes missing keycodes, cleans up & sorts existing ones - take 2

this time I added a test case to prevent further mixups - see https://github.com/libgdx/libgdx/pull/2575