I was playing the bass too and sometimes I also experience pain in my wrists or my hands. Not only when I am coding. Writing is the worst my hands always hurt from writing.
A doctor should help or if it does not, go see another. Of course he will not give you an advice about which keyboard you should buy, but he might tell you that you should have a break and stop coding for a while. Or maybe do some exercises, not sure. :-)