# sm.gui.getKeyBinding

Returns the set binding for an action as a string

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.gui.getKeyBinding( action, hyper? )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.gui.md#getkeybinding)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `action` | string | The action |
| `hyper` *(optional)* | boolean | If the string should contain hyper text (Defaults to false) |

**Returns:**

| Type | Description |
| --- | --- |
| string | The key binding |
