USB keyboard is plug and play device. Windows automatically installed generic USB keyboard once you plug it on your computers. There are 2 main reason why your USB keyboard not detected in Windows 7 , the first one is windows installed wrong driver, and the other one is your generic keyboard driver files are missing.