KeyInfo(Int32, Char, ControlKeyStates, Boolean) Constructor 
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initialize a new instance of the KeyInfo class and defines the VirtualKeyCode, Character, ControlKeyState and KeyDown values.
public:
 KeyInfo(int virtualKeyCode, char ch, System::Management::Automation::Host::ControlKeyStates controlKeyState, bool keyDown);
	public KeyInfo(int virtualKeyCode, char ch, System.Management.Automation.Host.ControlKeyStates controlKeyState, bool keyDown);
	new System.Management.Automation.Host.KeyInfo : int * char * System.Management.Automation.Host.ControlKeyStates * bool -> System.Management.Automation.Host.KeyInfo
	Public Sub New (virtualKeyCode As Integer, ch As Char, controlKeyState As ControlKeyStates, keyDown As Boolean)
	Parameters
- virtualKeyCode
 - Int32
 
The virtual key code
- ch
 - Char
 
The character
- controlKeyState
 - ControlKeyStates
 
The control key state
- keyDown
 - Boolean
 
Whether the key is pressed or released