Avoid unintended consequences when switching control back to the local computer (#18077)
Closes #17969
Summary of the issue:
The default gesture to toggle control between guest and host (NVDA+alt+tab) results in unintended consequences on the remote computer.
Description of user facing changes
These consequences should be avoided.
Description of development approach
Refactored keyboardHandler.KeyboardInputGesture.__init__ to make the logic for generalising modifier keys its own method.
In _remoteClient.client.RemoteClient.releaseKeys, send a keydown and keyup for VK_NONE before releasing all modifiers, if not doing so could cause side effects.
Based on the logic in keyboardHandler.KeyboardInputGesture.executeGesture.