I own a DELL U2723QE 4K monitor that ships with a KVM so that I can connect two computers. One via an USB-c connection and one via either an HDMI or a DisplayPort connector. Switch to either is controlled by a physical button on the back of the screen. But it can also be done software-wise.