It sounds like your keyboard is dead or worse, the PS2 port on your
motherboard is dead. If you are unable to use the keyboard before
Windows loads, it is not an OS thing. I would buy or borrow a cheap USB
keyboard, boot up to XP without any keyboards or mice connected, then
plug in the USB keyboard after XP has loaded.
----
Nathan McNulty