In VB .NET, you use a timer control, this is located on the standard toolbar that lies to the left of the screen.
Then I think you would create this procedure:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
'this code will call the command button procedure
button1_click(sender, e)
End Sub
Like people said up above, you must set the interval of the timer and call the start method of the instance of the timer object that you create. So something like this:
timer1.start
I think you put that code into the timer_tick procedure. This is how it is done with VB .NET I think people up above are explaining it how it would be accomplished with Visual Basic 6.
-----------------------
edited
-----------------------
I just re-read your question and I think you may have wanted to press the "f" key on the keyboard.
If that is the case, you use this procedure.
Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
End Sub
So put the form1_KeyPress(sender,e) in the timer1 object.
I am not for sure on how to disguish which key has been pressed at the moment, but invoking that procedure will do the same thing as if you pressed a key on the keyboard.