Up arrow to front flip and down to back flip. Use the space bar to change characters.
Thank you ScienceMiner for the original. I made a few changes that I wanted to make. I added that if you touch an obstacle, you restart. It may be a little hard, but I will change some things over time.