You use the left arrow to go left, the right to go right, up to go up, down to go down and every time you run into the star hit the space key.
My brother showed me how to do it because this is my first project!