Your fingers absorb the shock as you type on the computer keyboard which causes your fingers to hurt after typing a lot.
I work at an office typing all day and Every 30 minutes or so my fingers begin to hurt so I put my fingers between each other with my hands and turn my hands backwards which helps to alleviate some of the pain.
You can also try moving your fingers back and forth when you take a break from typing.
You might also look into getting a more comfortable keyboard to type on if possible.