I had this problem a couple years ago - I switched to an ergonomic keyboard and vertical mouse, in my case the "Microsoft Sculpt".
It helped a ton but I also had to do a few other things to get the rest of the pain to go away:
Hope that helps!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.