# IKeyboardEvent

> This interface describes the data used by keyboard events.

## Definition

* **Type:** Interface
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public interface IKeyboardEvent
```

## Remarks

Refer to the [Keyboard events](/engine/6000.6/manual/uitoolkits/uielements/uie-events/reference/uie-keyboard-events.md) manual page for more information and examples.

Additional Resources: [KeyDownEvent](/engine/6000.6/script-reference/unityengine/uielements/keydownevent.md), [KeyUpEvent](/engine/6000.6/script-reference/unityengine/uielements/keyupevent.md)

## Properties

| Property                                                                                          | Description                                                                                 |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| [actionKey](/engine/6000.6/script-reference/unityengine/uielements/ikeyboardevent/actionkey.md)   | Gets a boolean value that indicates whether the platform-specific action key is pressed.    |
| [altKey](/engine/6000.6/script-reference/unityengine/uielements/ikeyboardevent/altkey.md)         | Gets a boolean value that indicates whether the Alt key is pressed.                         |
| [character](/engine/6000.6/script-reference/unityengine/uielements/ikeyboardevent/character.md)   | Gets the character entered.                                                                 |
| [commandKey](/engine/6000.6/script-reference/unityengine/uielements/ikeyboardevent/commandkey.md) | Gets a boolean value that indicates whether the Windows/Cmd key is pressed.                 |
| [ctrlKey](/engine/6000.6/script-reference/unityengine/uielements/ikeyboardevent/ctrlkey.md)       | Gets a boolean value that indicates whether the Ctrl key is pressed.                        |
| [keyCode](/engine/6000.6/script-reference/unityengine/uielements/ikeyboardevent/keycode.md)       | The key code.                                                                               |
| [modifiers](/engine/6000.6/script-reference/unityengine/uielements/ikeyboardevent/modifiers.md)   | Gets flags that indicate whether modifier keys (Alt, Ctrl, Shift, Windows/Cmd) are pressed. |
| [shiftKey](/engine/6000.6/script-reference/unityengine/uielements/ikeyboardevent/shiftkey.md)     | Gets a boolean value that indicates whether the Shift key is pressed.                       |
