On a normal keyboard? I would recommend an ergonomic keyboard. I started off using one from Microsoft then got a Logitech K860 and have been using that at home and at work for over half a decade now. I'm never going back, in my opinion normal keyboards are strictly inferior.
It's worth a try if you're having trouble with pain, worked for me. And it isn't just good for health reasons, it's just better suited to human use. It feels more natural and comfortable.