Fix SDL keyboard event sending on X11.