Hand cramps can occur for a number of reasons.
Best initial treatment is to stop the activities that are provoking the cramping, rest the hand, and soak the hand in a tub of warm water. You want the temperature very warm, but not hot enough to burn. Rest the hand is the water for 5 minutes, then gently massage
and stretch the fingers while in the water for 5 more minutes.