First person shooter changing velocity of projectile

I’m trying to prototype a fairly simple mobile game idea in which you throw balls into holes, I want when the player swipes/holds down on the touch screen to determine the velocity of the ball, I’ve tried a few methods but none of them have worked, and I wanted to use the ‘Get Input Key Time down’ but wasnt sure how to set this up?

I’m using the first person shooter template to test this out currently,

Any help would be appreciated thanks

Here is a way to do it :