Use the left arrow key to rotate the square clockwise, and the right arrow key to rotate the square counterclockwise.
This project is not complete, because the ball does not roll down diagonally. I got this idea from MY brain, so if someone already did something like this, I don't actually know it/them.