# Keyboard Navigation

The keyboard navigation of the Timeline is always available.

In Vertical mode when the Timeline is focused, the first card gets focused. In Horizontal mode when the Timeline is focused, the timeline scrollable wrap element gets focused. For a complete example, refer to the [demo on keyboard navigation of the Timeline](https://demos.telerik.com/aspnet-mvc/timeline/keyboard-navigation).

#### Focusing the widget with the ALT+W key combination in Horizontal mode

The demo showcases how to focus the widget when the Vertical mode is used. In order to focus the widget with the ALT+W key combination in Horizontal mode, you should use the ".k-timeline-scrollable-wrap" class as a selector.

```javascript
$(document.body).keydown(function (e) {
    if (e.altKey && e.keyCode == 87) {
        $(".k-timeline-scrollable-wrap").focus();
    }
});
```

The Timeline component supports the following keyboard shortcuts in **Vertical mode**:

| SHORTCUT      | DESCRIPTION                                   |
| :------------ | :-------------------------------------------- |
| `Tab`         | Focus the next card.                          |
| `Shift + Tab` | Focus the previous card.                      |
| `Space`       | Toggle the expand/collapse state of the item. |
| `Enter`       | Toggle the expand/collapse state of the item. |

The component supports the following keyboard shortcuts in **Horizontal mode**:

| SHORTCUT      | DESCRIPTION                |
| :------------ | :------------------------- |
| `Enter`       | Selects the current event. |
| `Space`       | Selects the current event. |
| `Left Arrow`  | Focuses the previous date. |
| `Right Arrow` | Focuses the next date.     |

## See Also

* [Custom Keyboard Navigation in the Timeline for ASP.NET MVC](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/navigation/timeline/accessibility/custom-keyboard-navigation)
* [Keyboard Navigation by the Timeline HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/timeline/keyboard-navigation)
* [Server-Side API](https://www.telerik.com/aspnet-mvc/documentation/api/timeline)
