It's not your keyboard, but it may be your XP installation disc. It MUST be XP with SP2 as a minimum, or the installation won't work. It has to do with the drivers that come with the earlier versions of XP.
If your XP disc is supposed to be SP2 or later, it's possible that the disc itself is slightly damaged. The installer that comes with XP is really pretty stupid-Microsoft used the "most compatible" optical driver, which just happens to be able to operate drives that are older than most new Windows users, but which also offers almost no error correction. A CD with trivial data errors from scratches could be virtually unreadable if those errors are in just the wrong places. And the installer simply won't tell you when there's a problem writing a file during installation. You jave to try to get all the way through and then see if it all works.