I have an ATEN usb KVM that allows anything to be plugged in. I have an USB drive to quickly transfer files but works with anything USB powered. It's expensive if you go for USB 3+, DP, etc but cheaper ones work also just for USB stuff.
One big drawback, at least for me, some mice and keyboards that have special keys, do not work 100%.