Press space for 1v1, where player 1 uses arrow keys and player 2 uses A and D. Or press the up arrow key to play the computer.
I used some sounds and sprites from Scratch, but the rest is mine. The computer is meant to be slower than you so it is possible to win.