ui/sdl: Fix handling of caps lock and num lock keys