Correctly validate key settings

If SDL_GetKeyName() doesn't return a name, then it's not a valid key.