You would have to make the animation separately from the blueprint.
First, you’d need some test points for each leg. Then determine the distance from those to the object that you want to kick. As for the force of the kick, you’d probably use an impulse on the ball in the direction you want to kick it, with the strength of the impulse increased the longer the key is pressed.