# PreviewKeyDownEventArgs

URL: https://docs.wisej.com/api/wisej.web/general/control/wisej.web.previewkeydowneventargs

Version: 4.1
Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.1.0.0)

Provides data for the [PreviewKeyDown](/api/wisej.web/general/control/#previewkeydown) event.

- C# - VB.NET

```csharp
public class PreviewKeyDownEventArgs : EventArgs
```

```visual
Public Class PreviewKeyDownEventArgs
    Inherits EventArgs
```

## Constructors

### ![Instance member](/img/api/instance.png) PreviewKeyDownEventArgs(keyData)

Initializes a new instance of the [PreviewKeyDownEventArgs](/api/wisej.web/general/control/wisej.web.previewkeydowneventargs) class with the specified key.

| Name | Type | Description | **keyData** | [Keys](/api/wisej.web/enumerations/wisej.web.keys) | One of the [Keys](/api/wisej.web/enumerations/wisej.web.keys) values. 

## Properties

### ![Instance member](/img/api/instance.png) Alt

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) : Returns whether the ALT key was pressed.

### ![Instance member](/img/api/instance.png) Control

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) : Returns whether the CTRL key was pressed.

### ![Instance member](/img/api/instance.png) IsInputKey

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) : Returns whether a key is a regular input key.

### ![Instance member](/img/api/instance.png) KeyCode

[Keys](/api/wisej.web/enumerations/wisej.web.keys) : Returns the keyboard code.

### ![Instance member](/img/api/instance.png) KeyData

[Keys](/api/wisej.web/enumerations/wisej.web.keys) : Returns the key data.

### ![Instance member](/img/api/instance.png) KeyValue

[Int32](https://docs.microsoft.com/dotnet/api/system.int32) : Returns the keyboard value.

### ![Instance member](/img/api/instance.png) Modifiers

[Keys](/api/wisej.web/enumerations/wisej.web.keys) : Returns the modifier flags indicating which combination of CTRL, SHIFT, and ALT keys was pressed.

### ![Instance member](/img/api/instance.png) Shift

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) : Returns whether the SHIFT key was pressed.

## Used By

| Name | Description | [PreviewKeyDownEventHandler](/api/wisej.web/general/control/wisej.web.previewkeydowneventhandler) | Represents the method that will handle the [PreviewKeyDown](/api/wisej.web/general/control/#previewkeydown) event.
