If this is software, always remember to:
Check in the "Stand Alone mode"
==> File/ Audio & Midi Preferences
==> Activ Midi Input Section
Insures you that your keyboard is Well checked.
Otherwise(hardware) you can try to plug it with another usb cable, or in another usb slot, at least on another computer to make sure it is recognize.