Well, many insects have developed ways to right themselves when they get turned over.
One of the more interesting families are the Elateridae, or **click beetles**: so named because they press their prosternum and mesosternum against each other which causes pressure. That pressure is eventually released causing a "clicking" sound and springing the insect upward (or away from predators).
![
You can see an additional video of a click beetle doing so here.