The device you are looking for is called a KVM Extender
It lets you have a Monitor(the 'Video' in KVM), Keyboard and Mouse. And the Computer can be put at a distance with a cable. It's also good if your computer is noisy - you can shut it away.
You may also want a KVM Switch, that lets you have one Monitor, keyboard and mouse, and multiple computers.
Comp --- \
Comp --- \ KVM Switch -> KVM Extender------> Monitor, Keyboard,Mouse
Comp --- /
then you have both the ability to switch between your computers, but to do so seated at a distance from them.
FYI- There are other variations of KVM that are useful. A Reverse KVM switch, lets you have multiple 'consoles' (keyboard and mice and video/monitor) and one computer. So you could sit at location A or B or C, to access a computer at location C.
And for your further info, another called synergy works as software, lets you have one Keyboard Mouse , multiple Computer, multiple monitors. I used it years ago. And windows lets you have one KMC multiple V.
Comp --- \
Comp --- \ KVM Switch -> KVM Extender------> Reverse KVM Switch
Comp --- / |
|
/ | \
/ \
Keyb keyb
Video vid
Mouse mouse
location1 location 2
or instead of 3 comps on the far left you could have 1 and remove the KVM switch
comp -> KVM Extender------> Reverse KVM Switch
|
|
/ | \
/ \
Keyb keyb
Video vid
Mouse mouse
location1 location 2
or
comp
|
|
\/
reverse KVM------KVM EXTENDER----------------REVERSE KVM----Location B
\ |---Location C
\
\
Location-A(keyb,vid,mouse)
(each location having a keyb,vid,mouse.)