I also experience that kind of pain from time to time. I've noticed that it depends on how I seat my self. A good posture, straight back and forearm, and I do ok. :)

For what I know, you're still studying... imagine how it's gonna be with a 8h/day job, always at the keyboard. I think you just need to find the best comfortable way to seat yourself.