Don't worry so much about the initial force applied, only consider the ball after the force is applied. Considering Newton's First law of motion, an object at rest will stay at rest or in motion until a force is acted upon it. When you apply a push to the ball to go up the ramp, you apply a force to give it an initial velocity, but once you let go of the ball, the force become irrelevant because you are no longer applying a force on the ball, thus we only need to consider the ball after you push it.
As the ball goes up the ramp, it has some initial velocity and is deaccelerating because there is a net force of gravity acting on it, causing the ball to slow down until it eventually stops and falls back to Earth.
Consider the conservation of energy here:
When you first push the ball, it is has kinetic energy, and as it travels up, some height h, it converts that kinetic energy into potential energy, and when it reaches the top it has all of its energy stored in potential, but as it falls back towards the Earth, it gains speed due to the acceleration of gravity and that potential energy is converted back into Kinetic energy. So it doesn't matter what height you start above the Earth, energy is always conserved.
Remember that:
\begin{equation}
\frac{1}{2}mv^2 = \Delta mgh
\end{equation}
\begin{equation}
\Delta KE = \Delta PE
\end{equation}