# KeyEventArgs class

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public class KeyEventArgs : EventArgs
```

Arguments for key press events

## Constructors

- [KeyEventArgs](https://eto.picoe.ca/api/type/eto.forms.keyeventargs/ctor.md): Initializes a new instance of the KeyPressEventArgs class for a character key press

## Properties

- [Alt](https://eto.picoe.ca/api/type/eto.forms.keyeventargs/alt.md): Gets whether the alt key was pressed/released for the event
- [Application](https://eto.picoe.ca/api/type/eto.forms.keyeventargs/application.md): Gets whether the application key was pressed/released for the event
- [Control](https://eto.picoe.ca/api/type/eto.forms.keyeventargs/control.md): Gets whether the control key was pressed/released for the event
- [Handled](https://eto.picoe.ca/api/type/eto.forms.keyeventargs/handled.md): Gets or sets a value indicating that this event was handled by user code
- [IsChar](https://eto.picoe.ca/api/type/eto.forms.keyeventargs/ischar.md): Gets a value indicating that the key press corresponds to a character input value
- [Key](https://eto.picoe.ca/api/type/eto.forms.keyeventargs/key.md): Gets the key value (without modifiers)
- [KeyChar](https://eto.picoe.ca/api/type/eto.forms.keyeventargs/keychar.md): Gets the key character corresponding to the key press (if [KeyEventArgs.IsChar](https://eto.picoe.ca/api/type/eto.forms.keyeventargs/ischar.md) is true)
- [KeyData](https://eto.picoe.ca/api/type/eto.forms.keyeventargs/keydata.md): Gets the raw key data (the combination of the [KeyEventArgs.Key](https://eto.picoe.ca/api/type/eto.forms.keyeventargs/key.md) and [KeyEventArgs.Modifiers](https://eto.picoe.ca/api/type/eto.forms.keyeventargs/modifiers.md))
- [KeyEventType](https://eto.picoe.ca/api/type/eto.forms.keyeventargs/keyeventtype.md): Gets the type of the key event.
- [Modifiers](https://eto.picoe.ca/api/type/eto.forms.keyeventargs/modifiers.md): Gets the modifier keys that were pressed for this event
- [Shift](https://eto.picoe.ca/api/type/eto.forms.keyeventargs/shift.md): Gets whether the shift key was pressed/released for the event

## Methods

- [IsKeyDown](https://eto.picoe.ca/api/type/eto.forms.keyeventargs/iskeydown.md): Determines whether the specified key and modifier was pressed
- [IsKeyUp](https://eto.picoe.ca/api/type/eto.forms.keyeventargs/iskeyup.md): Determines whether the specified key and modifier was released
