Best solution for using different keyboard/mouse for two laptops with same monitor?

Hi! I am kind of stuck in a rut with my setup right now and am looking for some feedback or good ideas about how to solve this.

TL;DR: I have one monitor, two laptops and use a different keyboard and mouse for each laptop. What's the best way to be able to quickly switch which laptop, keyboard and mouse I'm using, while preferably only having to connect a USB-C cable to the laptop in question?

Longer version:

I basically have three computers in the setup, with two of them being laptops that will get connected and disconnected very frequently, so they need to be mobile. I'm only connecting one laptop at a time now, which I'm fine with continuing.

  • My work laptop is a Windows computer. With it I use a Contour keyboard and roller mouse, which can be connected via USB-A dongles. The roller mouse can also be connected via BT or wired, but haven't done that.
  • My personal laptop is a MacBook Pro, and I have a Keychron keyboard and a Magic Trackpad I use with it. I connect them via Bluetooth right now.
  • A Mac mini that is more or less never used directly, but sits there as a Time Machine target, Plex server and so on. I don't think this really needs to be a part of the setup, really, except just sit there? I had an issue a little while back where I needed to connect a screen and keyboard to it, so it would be nice to have the option, but not 100% necessary. I have a Satechi hub for it, but mostly for the storage – though that does give me the option of easily connecting a keyboard and mouse if needed.

I cannot for the life of me get used to using the same keyboard and mouse for both laptops (my hands default to Windows stuff with the ergonomic keyboard and default to Mac stuff with the Keychron + Magic Trackpad), so I need some sort of way to quickly change which keyboard and mouse to use.

Right now I have a Samsung 34" curved monitor that is a USB-C hub as well. Connected to the monitor, I right now have the following:

  • Webcam with built-in mic, needed mainly for the work laptop
  • Speakers
  • Dongles for the Contour keyboard and roller mouse

This means that when I move the USB-C cable between the work laptop and my Mac, I have to explicitly turn off the Contour keyboard and mouse, since they are connected to the monitor, and I then have to use Bluetooth for the Keychron (or connect it explicitly every time, which I also don't want). In theory I could connect the Keychron to the monitor, and also turn that on and off, but the monitor doesn't have any easily available USB ports in the front.

Basically I'm curious if there are any better solutions that will let me easily switch between using my Windows laptop(s) and my Mac, and keep everything the same except for the keyboard and mouse. Would I benefit from a hub instead of using the monitor as a hub? It's kind of a hassle to have a "hub" with no ports accessible from the front, plus the USB-C connection on this monitor is janky, so like 20% of the time when I move it, it doesn't work on the new machine (though I'm guessing that's an issue with the monitor, not the setup).

Ideally I would like to just connect a USB-C cable to either laptop and just have everything work. Whether that USB-C cable goes directly to the monitor or via a hub I don't have any strong opinions about.