KeyDown emulates a key that is held down.
It is useful for holding the shift key down.
Syntax: KeyDown (KeyCode As Byte)
The KeyCode values can be found here: http://msdn2.microsoft.com/en-us/library/ms645540.aspx
Note that only part of the table is the same as the ASCII table.
Example:
TextBox1.Focus
Hardware1.KeyPress(asc("A")) 'Writes a
Hardware1.KeyDown(160) 'Holds
the left shift down
Hardware1.KeyPress(asc("A")) 'Writes A
Hardware1.KeyUp(160) 'Frees
the left shift