Unlike a dock, a KVM switch remains plugged into both your computers all the time.
If you've ever found yourself switching between two computing devices, such as a home desktop and a work-issued laptop, then you've probably felt the pain of jumping back and forth between two keyboards and two different screens.