---
title: "getKeys"
canonical: "https://help.vicon.com/space/Shogun112/31228695/getKeys"
format: markdown
---
# Description

Gets the frame numbers on which there are keys for the specified module and the specified channel.

## Functional area

Data retrieval

# Command syntax

## Syntax

|  |
| --- |
| `getKeys propertyName [-onMod string]` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `propertyName` | string | yes | Name of the channel property to count keys for |

### Flags

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `onMod` | 1 | string | — | Returns the keys for the specified module only. |

> Macro (scroll-pagebreak)

## Return value

integer array

## Examples

```plaintext
//print the frame numbers for all translation keys for the LFHD Marker
int $keys[] = `getKeys Translation -onMod "LFHD"`;
print $keys;
```

# Additional information

## Related commands

- [getNumKeys](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31234767)
- [getSelectedKeys](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31240366)
- [getTime](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31228764)