If you're not exercising regularly and you have pain triggered by programming you should give exercise a chance. It has worked wonderfully for me. In my case just running 5k every week has done the trick. Pain went away magically and never came back. I have no idea how running can prevent what seems to be unrelated pain but I swear it worked for me. I now use the most basic keyboard and mouse and I'm fine. I don't know if it will work for you but it's worth trying.