I am trying to get player 2 to perform the same actions as player 1 in an online game.
When player 1 catches the ball then player 1 can hit the "R" key which will make the player throw the ball. When player 2 tries the same thing but with "]" key then nothing happens. The "R" key makes player 1 dash without the ball and the "]" key makes player 2 dash without the ball.
Movement keys are:
Player 1: wasd
Player 2: ijkl
There is also a bug where if player 2 hits player 1's movement keys then it will make player 1's paddle look like it is moving a little.