Honestly the best thing that worked for me, even if the hardware is not for everyone, is a Logitech MX Keys that supports 3 devices paired with another Logitech mouse that supports 3 devices, then flip the monitor through the inputs, super reliable. I could even have 2 devices side by side on the same screen (Dell utlrawide) and toggle between them.