I arrived here with 167 comments already present, and am very surprised to find I am the first to offer the following:
A few years ago, I started feeling frequent hand and wrist pain. At the time I was writing a lot of code and also a lot of text. To attempt to fix it:
1) I learned more keyboard shortcuts and refactoring tools, so that I could write more code with less finger use.
2) I picked up a voice dictation system, went through the tedious process of getting comfortable with it, and switched to it for nearly all of my non-programming work.
Between these two things, I estimate my keyboard use declined by perhaps 75%. My productivity increased. Pain completely disappeared. Total cost, a few hundred dollars, including a decent wireless headset.