At the maximum height, the velocity of the ball is zero, then its kinetic energy is zero.
Remember that the ball goes up with constant negative acceleration (opposed to the movement) until the velocity is zero and then the ball starts to gain velocity downward.