@Mast Is win+ctrl+-> goes to remote and win+shift+-> goes to local ok? If so you could probably get AHK to listen to win+shift+-> and then call a script that uses the WinAPI. Looks like
VirtualDesktop uses the WinAPI rather than sending keys but I'm not sure