# Keyboard class

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

```cs
[Handler(Keyboard.IHandler)]
public static class Keyboard
```

General keyboard methods

## Properties

- [Modifiers](https://eto.picoe.ca/api/type/eto.forms.keyboard/modifiers.md): (static) Gets the current modifier state for keys such as [Keys.Control](https://eto.picoe.ca/api/type/eto.forms.keys.md), [Keys.Alt](https://eto.picoe.ca/api/type/eto.forms.keys.md) and [Keys.Shift](https://eto.picoe.ca/api/type/eto.forms.keys.md).
- [SupportedLockKeys](https://eto.picoe.ca/api/type/eto.forms.keyboard/supportedlockkeys.md): (static) Gets an enumeration of all keys supported by the [Keyboard.IsKeyLocked(Keys)](https://eto.picoe.ca/api/type/eto.forms.keyboard/iskeylocked.md) method.

## Methods

- [IsKeyLocked](https://eto.picoe.ca/api/type/eto.forms.keyboard/iskeylocked.md): (static) Determines if the specified `key` is in a locked state, such as the [Keys.CapsLock](https://eto.picoe.ca/api/type/eto.forms.keys.md), [Keys.ScrollLock](https://eto.picoe.ca/api/type/eto.forms.keys.md), [Keys.NumberLock](https://eto.picoe.ca/api/type/eto.forms.keys.md), or [Keys.Insert](https://eto.picoe.ca/api/type/eto.forms.keys.md) key.

## Events

- [ModifiersChanged](https://eto.picoe.ca/api/type/eto.forms.keyboard/modifierschanged.md): (static) Event to handle when the [Keyboard.Modifiers](https://eto.picoe.ca/api/type/eto.forms.keyboard/modifiers.md) or [Keyboard.SupportedLockKeys](https://eto.picoe.ca/api/type/eto.forms.keyboard/supportedlockkeys.md) state has changed
