if it's the ps2 type connection (round one) then assuming you have a usb port just try a usb keyboard instead.
strange that it's working in DOS though and not xp points more to software instead of hardware but sticking a usb keyboard in might dodge the problem pretty much cost free. (apart from the keyboard of course)
worto.