This been one of my biggest frustrations - I also use a USB 3.0 switch to toggle mouse & keyboard input between two PCs. I'll be on a teams call meeting where I don't have a lot to say and then someone mentions my name or messages me. I'm suddenly fiddling around looking to find the button to switch inputs back to the PC running teams. I thought about wiring up a ESP32 or Rpi Pico W with couple of optoisolators to the button pins on the USB switch. Then expose a http endpoint to simply toggle inputs between two machines via autohotkey script + keyboard shortcut. Only problem was that I couldn't come up with a way to determine which input is active. So gave up on the idea. But I like this solution.