---
title: Navigator.keyboard
slug: Web/API/Navigator/keyboard
tags:
  - API
  - Experimental
  - Keyboard API
  - Keyboard Map
  - Navigator
  - Property
  - Reference
  - keyboard
browser-compat: api.Navigator.keyboard
---
{{SeeCompatTable}}{{APIRef("Keyboard API")}}

The **`keyboard`** read-only property
of the {{domxref("Navigator")}} interface returns a {{domxref('Keyboard')}} object
which provides access to functions that retrieve keyboard layout maps and toggle
capturing of key presses from the physical keyboard.

## Syntax

```js
var keyboard = navigator.keyboard
```

### Value

A {{domxref('Keyboard')}} object.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
