Centripetal force is an accelerating force that acts on any body that revolves around a centre. This force contributes to keeping the body in circular motion. This force is always directed towards the centre.
An example is a roller coaster which uses centripetal force to accelerate the carts so they will keep going in a circular motion. Even if an object changes direction but maintains at a constant speed it still counts as acceleration.