---
title: "shortcut.set: Set Keyboard Shortcut — Motion kit command — Kition"
description: "Binds keys to a `command` (with `params` when the binding passes some): `keys` \"Cmd+Shift+K\", a list, or null to unbind. Editing the default preset creates a custom copy. Returns keys and conflicts."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/shortcut.set"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/motion/commands/shortcut.set](https://developer.kition.ai/docs/kits/motion/commands/shortcut.set)

# shortcut.set

**Set Keyboard Shortcut.** Binds keys to a `command` (with `params` when the binding passes some): `keys` "Cmd+Shift+K", a list, or null to unbind. Editing the default preset creates a custom copy. Returns keys and conflicts.

- Kit: Motion 0.1.0 (.kmotion); reference: [Motion kit commands](https://developer.kition.ai/docs/kits/motion.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `command` | `string` | no |  |
| `keys` | `string` | no | "Cmd+Shift+K" \| [keys] \| null |
| `params` | `any` | no |  |

## Call through motion_run

```text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "shortcut.set" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `command`, `keys`, `params`. motion_run answers the step’s result in `completed[i].result`.

## Result



```json
{
  "description": "The command's answer"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "command": {
      "type": "string"
    },
    "keys": {
      "description": "\"Cmd+Shift+K\" | [keys] | null",
      "type": "string"
    },
    "params": {}
  },
  "type": "object"
}
```

Generated from the command list of @kition/motion-darwin-arm64@0.1.0 and the kit itself (motion_commands through @kition/cli@0.1.1, built from KitionAI/kition-motion@4719aa7).
