Use the arrow keys this time.
I learnt how to make a pong game back in 2018 but recently. I upgraded it. Making the player use the arrow keys instead of the mouse pointer. I even added healthbars! The red bar will replace a small part of the green bar every time the ball touches the red part. Once both balls exploded from touching the red part too many times, the game will end.