You just use the left and right buttons on your keyboard and this is my first ever game I made so it might not be great you can't the up and down buttons and if you get the star it does not disappear. And it goes in random places. So there is no pattern.
I looked at a tutorial