When a body is thrown up, it's velocity goes on decreasing, but its potential energy goes on increasing. The kinetic energy of the body gradually changes into the potential energy of the body as soon as it goes up above the ground. At the highest point, the velocity of the body becomes zero and all of the kinetic energy gets converted into potential energy.