Use the arrow keys to catch the star. (If you don't catch the star, just move the sprite to it to resume the game; hopefully I will learn how to fix this in the future).
I based this off of the "Make a Chase Game" tutorial and also got inspiration from the game osu! The sprite comes from https://osu.ppy.sh/help/wiki/Skinning/osu!catch This project is a draft for a future game I want to be able to make. Even if you don't catch the star, you still need to move the sprite to it to resume the game (I will learn how to fix this in the future).