You will have to remove the hard drive and format it in another pc.
But you can't install Windows O/S on the second pc as it won't run on your original pc.
After you have formatted the hard drive and fitted it back in the original pc, you might find the keyboard works properly again.
This assumes that you have the original Windows DVD and product key, or you have a saved image of your 'C' drive complete to copy back again.
( I would be more worried about why none of your keyboards work, but if you can reinstall Windows again that would solve any keyboard driver issues anyway.)
Hope that makes sense.