Store keybindings as keycode, not keyname. Also use SDL_GetKeyName instead of a manually created map. Fixes #1202

Note: breaks compatibility with input.xml, so the filename was changed.