WinParrot is a free program that allows you to record keyboard inputs and mouse movements, and then play them back at any time with a click, command, or key combination.