# getBoundKeys (Client)

> Lists the keys bound to a command on this client.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Keyboard
- **URL**: https://wiki.mymp.gg/en/getBoundKeys

## Syntax

```lua
table|false getBoundKeys(string command)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `command` | `string` | The command's name. |

## Returns

A table mapping each key name to `"down"`, `"up"` or `"both"`, or `false` if no key runs the command.

It counts the command binds of every client resource.

## Example

```lua
local keys = getBoundKeys("radio")
if keys then
    for key, state in pairs(keys) do
        outputDebugString(key .. " (" .. state .. ")")
    end
end
```

## See also

- [getKeyBoundToCommand (Client)](https://wiki.mymp.gg/en/getKeyBoundToCommand.md): Tells which key runs a command on this client.
- [getCommandsBoundToKey (Client)](https://wiki.mymp.gg/en/getCommandsBoundToKey.md): Lists the commands bound to a key on this client.
- [bindKey (Shared)](https://wiki.mymp.gg/en/bindKey.md): Binds a key to a function or a command. The function runs when the key is pressed, released or both.
