The kinetic energy of an object is given by:
Kinetic energy = 1/2 * mass * velocity²
If the kinetic energy of the pendulum at the top of its swing is 0, then this tells us that the velocity of the pendulum at that point is 0. All of the kinetic energy is converted to potential energy, and the pendulum starts moving in the opposite direction after this point in time.