Keyboard, Video and Mouse. Usually you would switch both the input devices (keyboard and mouse) and the output (display), allowing to use a single set of peripherals to control and monitor multiple computers.
TIL KVMs existed before the mouse, which explains the odd order.
TIL KVMs existed before the mouse, which explains the odd order.