Disclaimer: the experiences described here are my personal opinion. I bought the product privately directly from the manufacturer and paid for it myself.
In the meantime, I often have the situation of having to switch between different computers, e.g. laptop and PC or PC and Raspberry Pi. Monitors usually offer several inputs, so switching here is usually not a problem. However, there is still the problem of having to move the keyboard and mouse around as well, which can be very cumbersome in the case of stationary PCs under the desk.
The solution: a KVM switch. KVM stands for “Keyboard Video Mouse”. Such a switch is connected to a monitor, keyboard and mouse and forwards the connection to one of several connected computers. I chose a model from TESmart, which allows it to be mounted on a wall or under the desk. Furthermore, it also offers practical functions such as “USB passthrough”, which are often missing in simpler models. There are also models that are intended as a desktop device, but otherwise work in the same way.