Well... sometimes I have to unplug and plug the keyboard back in on our old computer to be able to re-initialize it.
They follow the same standard, so I don't see how it would damage your keyboard.
There are switchboxes that hot-swap keyboards, mices and monitors between different computers, that would be more dangerous as they use different power sources.