Click the flag twice, then use the arrow keys to move. Try to get to the blue portal, but don't touch red.