Guard against Keystate outliving QGuiApplication
If KeyState outlives QGuiApplication, for example if stored the singleton is used in a static, we can't make wayland calls. Proxies can't be used after the display is closed.
In these cases we should no-op.
This fixes a lock screen crash