The left player presses the left and right arrows. The right player presses w and s The one who touches black loses.
A huge thanks to Ante33, who helping with the coding of the ball bouncing.