Use left and right arrows to move and don hit black.
Check out this game made by someone: https://scratch.mit.edu/projects/411385692