I asked the same question and then I bought a new monitor...
My kvm, is in my monitor, a Dell U3419w.
One usb-c connection from my monitor charges / powers the laptop and provides usb connections to all my input devices, other devices, video, and etc.
Just one cable and I'm up and running.
My desktop is also connected to the monitor (display port and another usb connection) and I can switch back and forth as I need to. No cable moving or anything like that.