KeyDown Method (IKeyboardDevice)

Presses and holds the specified key. This method has multiple overloads.

KeyDown Method (Byte)

Presses and holds the specified key using a keyboard scan code.

Remarks
Supports scan code set 1, such as the list shown at: http://www.computer-engineering.org/ps2keyboard/scancodes1.html

C# Syntax

            public void KeyDown( 
   byte keyScanCode
)

Parameters

keyScanCode
The keyboard scan code of the key to hold.

KeyDown Method (Keys)

Presses and holds the specified key using a keyboard virtual key.

C# Syntax

                    
                        public void KeyDown( 
   Keyboard.Keys key
)

Parameters

key
The keyboard code of the key to hold. Possible values: Keyboard.Keys