# IKeyboardEvent

> This interface describes the data used by keyboard events.

## Definition

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

```csharp
public interface IKeyboardEvent
```

## Properties

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