basketball game help

hi i am new to programming and am creating a basketball game where as e created the field, ball, basket, one Escore and a reset button on the ball,

what I need is to know how could make the ball stay motionless in the air until I touch to shoot baskets, I tested with “physics.setGravity (0, 0)” but not enough for me as it takes away the seriousness to the ball.

what not to do is the transition from “static” to “dynamic” when I touch the screen to shoot baskets

thank you very much