# Keyboard Navigation

The keyboard navigation of the Chat is always available.

For a runnable example, refer to the [demo on using the keyboard navigation of the Chat](https://demos.telerik.com/aspnet-mvc/chat/keyboard-navigation).

## Managing the Focus

Focusable elements in the Chat are part of the page tab sequence:

* `.k-suggestion` (if present);
* `.k-message-box textarea`;
* all `.k-input-suffix button` elements;
* all `.k-chat-file .k-menu-button` elements (if any);
* all `.k-chat-download-button` elements (if any);
* all `.k-message-reference .k-button` elements (if any);

## Keyboard Shortcuts

This section lists the keyboard shortcuts supported by the Chat composite component.

### ToolBar Component

The Chat includes a ToolBar component for message actions and file operations. Refer to the [ToolBar keyboard navigation documentation](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/navigation/toolbar/accessibility/keyboard-navigation) for the available shortcuts.

### DropDownButton Component

The Chat uses DropDownButtons for various actions. Refer to the [DropDownButton keyboard navigation documentation](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/navigation/dropdownbutton/accessibility/keyboard-navigation) for the available shortcuts.

### SpeechToTextButton Component

When speech-to-text functionality is enabled refer to the [SpeechToTextButton keyboard navigation documentation](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/navigation/speechtotextbutton/accessibility/keyboard-navigation) for the available shortcuts.

### ContextMenu Component

The ContextMenu component provides a context menu for the chat bubble upon `Right Click` or `Shift + F10` key press. Refer to the [ContextMenu keyboard navigation documentation](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/navigation/menu/contextmenu/accessibility/keyboard-navigation) for the available shortcuts.

## Keyboard Shortcuts Applicable to Chat Bubbles

The Chat supports the following keyboard shortcuts when a chat bubble is focused:

| SHORTCUT     | DESCRIPTION                                   |
| ------------ | --------------------------------------------- |
| `Up Arrow`   | Selects and focuses the previous Chat bubble. |
| `Down Arrow` | Selects and focuses the next Chat bubble.     |
| `Home`       | Selects and focuses the first Chat bubble.    |
| `End`        | Selects and focuses the last Chat bubble.     |

## Keyboard Shortcuts Applicable to Suggestions and Button Elements

| SHORTCUT           | DESCRIPTION                               |
| ------------------ | ----------------------------------------- |
| `Enter` or `Space` | Triggers a `click` action on the element. |

## Keyboard Shortcuts Applicable to Message Box

| SHORTCUT        | DESCRIPTION                                   |
| --------------- | --------------------------------------------- |
| `Enter`         | Sends the message.                            |
| `Shift + Enter` | Start a new line in the textarea message box. |

## See Also

* [Keyboard Navigation by the Chat HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/chat/keyboard-navigation)
* [Accessibility in Telerik UI for ASP.NET MVC](https://www.telerik.com/aspnet-mvc/documentation/accessibility/overview)
