Cleanup the key codes.