keyboard – Connecting two macbook pros and a windows laptop device to external monitor

I have a brand new Windows 10 laptop that I use for wok. I also have a macbook pro from 2012 and a new macbook pro with thunderbolt 3 ports.

I want to connect at least the windows laptop with the new macbook (and maybe the old one). My goal is to use my dell monitor, logitech bluetooth keyboard (which has a bluetooth receiver) and the logitech mosue (which also has a bluetooth receive that is plugged in).

What type of device(s) do I need to connect them? I would prefer something that makes it easy to switch between laptops.