You should not do it like that. Input should not be replicated.
Example:
Player 2 joined Player 1 on the server.
Player 2 inputs forward.
You do not replicate the input itslef, you move player , and replicate movement event.
Watch this: https://youtu.be/gueCpmW4EJQ?list=PLQN3U_-lMANOaPmzSGLDhyWzKzwgKDz9V