@schmidt_fu Or get a mouse and keyboard with an output selector. My mouse lets me flip a hardware switch to choose between three different paired devices.

/