Someone once told me to do exercises with rubber bands. The idea was since your always putting pressure in one direction (clicking down or typing) you had to balance that pressure out. My hands were really bad a few years back, I did this for a week and they got better. Haven't done it since.
Another thing that it is extremely important is making sure you are working
ergonomically.