
After searching many products on Amazon, I came across this product. This KVM switch is simple and convenient as it uses a USB-C cable as its power source. Other kvm switches come with an extra power adapter and remote control. Each USB-C cable from PC1 and PC2 connects to 2 Macbook/PC.2 USB ports for keyboard and mouse. The rear HDMI output connects to an HDMI monitor. Every time I switch from one Mac to another Mac, there is a slight lag.

TESmart 1080P 60Hz USB VGA KVM Extender Over Cat5e Cat6 Ethernet Cable - Long Range 984ft/300m (Sender+Receiver)
10 Review

CKL 4 Port KVM Switch Dual Monitor DisplayPort 4K 60Hz: Unprecedented Multi-Computer Control with Audio, USB 2.0 HUBS, and DP 1.2
11 Review

Enhance Productivity with CKL HDMI KVM 2 Port 4K 30Hz Dual Monitor Extended Display (CKL-922HUA)
10 Review

NEWCARE HDMI KVM Switch: 4K@60Hz, 2x1 HDMI2.0 Ports + 3X USB KVM Ports - Share 2 Computers on UHD Monitor, with Wireless Keyboard and Mouse Support - USB Disk, Printer, USB Camera Compatible
10 Review