Writer's cramp

noun a painful spasmodic contraction of muscles of the hand or fingers brought on by excessive writing

Merriam-Webster's Collegiate Dictionary