PressKey(Keys) Method
Presses the specified key using a keyboard virtual key.

C# Syntax

public static void PressKey( 
   Keyboard.Keys key
)

Parameters

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