You can use the virtual keypress API that FLAMESABER told me about.
Gimme a sec lemme see if I remembered to save it :S
EDIT: Okay here we go, I couldn't find FLAMESABER's example so I googled quickly and wrote my "own"
Declarations:
[php]
Public Declare Function keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long) As Long
Const KEYEVENTF_KEYUP = &H2
[/php]
Now add this sub:
[php]
Private Sub press(ByVal mykey As Keys)
keybd_event(mykey, 0, 0, 0)
keybd_event(mykey, 0, KEYEVENTF_KEYUP, 0)
End Sub
[/php]
Then whenever you need to simulate a key press write this
[php]
press(Keys.J) 'change Keys.J to Keys.XXXX whatever you want'
[/php]
That should about do it.