I have had my female do that to my finger when I had a pellet stuck to it...
I am so glad I just screamed instead of doing a reflex jerk and sending her flying.
Didn`t really hurt - just felt very strange.
It is a good idea to be careful with lids and spaces. My girl manage to jump out of the tiny gap where the filter and heater cords go in. She got wedged in a folded piece of cardboard I had between the two tanks... and was there for hours before I noticed that she was nowhere in the tank. I tore the area apart and found her dried to the cardboard. Peeled her carefully off, put her back in the water, and the next morning she was swimming around like nothing happened.