Use the left and right arrow keys to move the block. Press R encase you need to restart. Try not to let the baseball touch the red line!
I made it by myself but had help from the scratch tutorials.