I may be wrong but do not have a wireless dongle thingy attached to the computer that uses the wireless keyboard and mouse? If so then the other PC will not have the dongle.
I am not sure if you can plug the dongle thingy into the KVM switch and the two PC's will see it, I would not have thought so.
A cheap mouse and keyboard might be the answer.
As I said I might be wrong.