I would probably say that the problem was caused by windows losing the keyboard drivers, the easiest way to fix this would be to get a ps/2 keyboard to log in and install them properly, or perhaps to remotely log in (if you have xp pro)
In my experience, although they have less features, ps/2...