---
title: MediaKeyStatusMap.keys()
slug: Web/API/MediaKeyStatusMap/keys
tags:
  - API
  - EncryptedMediaExtensions
  - MediaKeyStatusMap
  - Method
  - Reference
  - keys()
browser-compat: api.MediaKeyStatusMap.keys
---
{{APIRef("EncryptedMediaExtensions API")}}{{SeeCompatTable}}

The **`keys`** property of the
{{domxref("MediaKeyStatusMap")}} interface returns a new Iterator object, containing
keys for each element in the status map, in insertion order.

## Syntax

```js
var iterator = mediaKeyStatusMap.keys()
```

### Parameters

None.

### Returns

A new iterator.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
