Do other devices with usb connectors work properly? Asking this since you didn't say how your keyboard is connected.
Edit: Do the following:
Go to your Device Manager

Universal Serial Bus controllers

delete all devices

restart your computer; Windows will automatically reinstall the USB drivers, which might have been damaged
This post was edited by iDGames on Jun 22 2011 12:01pm