Use arrow keys. You may have to click the flag a couple of times.
This is based of the Halloween game on Google