Try using a PnP (Plug-and-Play) keyboard. Boot up and use that keyboard to check your settings in control panel. Also, check to make sure there's no driver issues in device manager. If there isn't, uninstall your keyboard driver then right-click and "search for new drivers" and let windows install a fresh one.
While you're at it, run a Virus scan if you have one.