Don't touch the ground. Use the left and right arrow keys. The goal of the game is to break all the bricks.
I want to thank Keven Briggs go check out his youtube channel https://www.youtube.com/channel/UCeebzVOg5Iv4hVqKTFdaqUQ he is the one who helped me with my programming.