Use a/left arrow key and d/right arrow key to move, dodge the spike, and press the flag when ready to play.
Bottom two options are slower but get double points.