---
title: Keyboard
framework: tvmljs
role: symbol
role_heading: Class
path: tvmljs/keyboard
---

# Keyboard

An object used to retrieve user input from search fields and text fields.

## Declaration

```data
interface Keyboard
```

## Overview

Overview Use the getFeature function with the feature name Keyboard to retrieve an instance of this class from the searchField and textField elements, as in, for example, getFeature('Keyboard').

## Topics

### Setting and Retrieving Text

- [text](tvmljs/keyboard/1627359-text.md)
- [onTextChange](tvmljs/keyboard/1627355-ontextchange.md)

### Providing and Handling Search Suggestions

- [suggestions](tvmljs/keyboard/3589336-suggestions.md)
- [onSuggestionSelected](tvmljs/keyboard/3678707-onsuggestionselected.md)

## See Also

### Element Access

- [MenuBarDocument](tvmljs/menubardocument.md)
