Move with arrow keys/WASD or use the joystick. If you touch the border you lose, but if you touch the coin you win!
Some of this I learned from a scratch book called Scratch Programming by Sean McManus. Credit to @griffpatch for his tutorial on how to make a joystick!