I have a home recording studio using Sonar X1.
Have you tried uninstalling the keyboard, restart the PC and then do a new install? If not, give that a try.
Connect the Keyboard, then go to the Device Manager. Right click to Higlight the entry for the Keyboard and then Left click "Uninstall". Disconnect the keyboard from the PC. Restart the PC and after Windows starts connect it and if you did not also uninstall the drivers Windows should detect it and reinstall it. If there were some type of corruption in Windows this will fix that.