Use left and right arrows to move back and forth. The up arrow causes upward flip. Use "m" to do double flip. Space bar to reset.
This is a little more advanced than the earlier version. Here I have added a back flip and double flip. Both are easily done just by changing a number in the code.