Most smart KVMs isolate the input PS/2 from the outputs and emulate a PS/2 keyboard to stop the machine at the other end freaking out. You could probably do it on an old-fashioned hard-switched one but then you'd risk all sorts of nastiness with shorts etc., there's a good reason they stopped being popular for anything other than switching printers