When we eat a candy bar and then decide to go for a walk, we get instant energy in the body due to the food energy in the candy and that is called carbohydrates. The carbohydrates in the candy give our body some instant energy due to which we feel more energetic and do the walk or another physical thing with a boost.
Our potential energy somewhat increases after eating the candy and when we walk, it gets transformed into kinetic energy