Virtual input library for controlling mouse and keyboard input