Get to Control Panel, System, and Device manager. Find the keyboard entry and delete it if it is there.
Before restarting, unplug the device. Restart the computer and plug it back in shortly after. It "should" detect it then. If not, that confirms a deeper problem, possibly damage.
Keyboards for the original PC/XT used different electrical signaling than the keyboards used by all AT and later PCs. Most keyboards (except for extremely old ones) have a switch on the bottom to select between XT and AT mode. Make sure that the switch is set correctly (normally to AT for all 286, 386 etc. PCs) or the keyboard will not work
We'll see