Simulating Client Input

How can I make a client automatically send movement input commands to the server without manually moving the client player?