I'm running some simulations which require manual keyboard input to change the parameters (annoyingly). 

Is there a way to simulate keyboard presses, so that I can run the simulations with a bash script?