What can I do to make the hand hold the grip of the gun even while the character is bending downward or upward?

You may find some useful ideas or info in this post: