Only update modifier state for keys that are pressed in another application Fixes https://github.com/libsdl-org/SDL/issues/4432