For Player1, use WS to move up and down respectively. Player2 uses up down arrow keys. Sometimes when it touches you, it still doesn't change. I'm not sure why. There are some glitches and just re-click the green flag to solve it.
Credits: @BestCoderInTheWorld for the original project Ping Pong!