Wasd to move. Touch rock to pick up. Click to throw rock. (Rock will make noise when thrown.) Get to the door to win. Avoid being caught.
You might need to click the flag more than once.