Gets or sets the key that was pressed.
Namespace:  Microsoft.VisualStudio.TestTools.UITest.Common
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)
Syntax
'Declaration
Public Property Key As Keys
public Keys Key { get; set; }
public:
property Keys Key {
    Keys get ();
    void set (Keys value);
}
member Key : Keys with get, set
function get Key () : Keys 
function set Key (value : Keys)
Property Value
Type: Keys
The key that was pressed.
Remarks
Setting this property raises the PropertyChanged event.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.