Get a human-readable name for a key.
Defined in <SDL3/SDL_keyboard.h>
const char * SDL_GetKeyName(SDL_Keycode key);
SDL_Keycode | key | the desired SDL_Keycode to query. |
(const char *) Returns a UTF-8 encoded string of the key name.
If the key doesn't have a name, this function returns an empty string ("").
This function is available since SDL 3.1.3.