Is this doable? I don’t want to have a bunch of input lag when trying to game but I wanna be able to switch easily to my Raspberry Pi whenever I want. Will introducing a KVM cause too much latency in my gaming?

I’m hoping to make it work rather seamlessly but I’m not fluent with KVMs haha