Use the arrow keys to move. the basic point is to avoid the purple diamond. When you lose then just press the green flag to play again.
To make the moving smoother I didn't use move 10 steps. In the comments below tell us how long you survived.