If you are going to be sending those clicks and key presses from within the
main form's code,
all you have to to is call the
OnClick() and OnKeyPress() methods of the form.
Otherwise, you will have to use interop to call SendMessage() from the Win
API