make sure that the icon is checked that says controller is plugged in. if you are using N-Rages plugin, try Jabos if the problem persists
I use the keyboard all the time, sometimes it is the ROM itself, but it is highly unlikely your situation (I know cause I fiddled with advanced setings for one game and cant get it back, lol)