Many toys are made with angular mechanics in mind. These toys include gyroscopes, tops, and yo-yos. When you spin a toy, you apply force to both sides (Push and pull respectively). This makes the top spin. According to newtons third law of motion, the top would continue to spin until a force is acted upon it. Because of all of the forces cancelling out gravity, it will stay upright.