# Keyboard Support

Using the **Telerik Diagramming Framework** allows you to trigger most of its features using key combinations. Below you can find a list of all supported key combinations and information about the features they trigger:

* You can use the **Ctrl** key to change the active mouse tool in the **RadDiagram**. The default tool is the **PointerTool** but holding down the **Ctrl** key allows you to use the **PanTool**.

* **Ctrl + C** - triggers the **DiagramCommands.Copy** command

* **Ctrl + X** - triggers the **DiagramCommands.Cut** command

* **Ctrl + V** - triggers the **DiagramCommands.Paste** command

* **Ctrl + Z** - triggers the **DiagramCommands.Undo** command

* **Ctrl + Y** - triggers the **DiagramCommands.Redo** command

* **Ctrl + A** - triggers the **DiagramCommands.SelectAll** command

* **Ctrl + D** - triggers the **DiagramCommands.Duplicate** command

* **Ctrl + G** - triggers the **DiagramCommands.Group** command

* **Ctrl + U** - triggers the **DiagramCommands.Ungroup** command

* **F2** - triggers the **DiagramCommands.BeginEdit** command

* **Enter** - triggers the **DiagramCommands.CommitEdit** command

* **Escape** - triggers the **DiagramCommands.CancelEdit** command

* **Delete** - triggers the **DiagramCommands.Delete** command

* **Ctrl + arrow** - triggers the **DiagramCommands.Nudge** command to slightly nudge the selection.

* **Ctrl + Shift + arrow** - triggers the **DiagramCommands.Nudge** command with command parameters that make sure to move the selection further.

> You can find a list of all **DiagramCommands** in the [Commands](https://www.telerik.com/products/wpf/documentation/controls/raddiagram/features/raddiagrams-commands) tutorial.

These key gestures are defined in the **RadDiagram InputBindings** collection. You can easily add and remove items from that collection thus creating custom key combinations.

For example if you want to create a custom key combination that triggers the **DiagramCommands.Layout** command, you can add a new **KeyBinding** to the **RadDiagram InputBindings** collection as follows:

```XAML
<telerik:RadDiagram x:Name="diagram" />
```

```C#
diagram.InputBindings.Add(new KeyBinding(DiagramCommands.Layout, Key.L, ModifierKeys.Control));
```

```VB.NET
diagram.InputBindings.Add(New KeyBinding(DiagramCommands.Layout, Key.L, ModifierKeys.Control))		  
```

## See Also

* [Getting Started](https://www.telerik.com/products/wpf/documentation/controls/raddiagram/getting-started)
* [Populating with Data](https://www.telerik.com/products/wpf/documentation/controls/raddiagram/populating-with-data/data-overview)
* [Shapes](https://www.telerik.com/products/wpf/documentation/controls/raddiagram/diagram-items/shape/raddiagrams-features-shapes)
* [Connections](https://www.telerik.com/products/wpf/documentation/controls/raddiagram/diagram-items/raddiagrams-features-connections)
* [Commands](https://www.telerik.com/products/wpf/documentation/controls/raddiagram/features/raddiagrams-commands)
* [Clipboard Operations](https://www.telerik.com/products/wpf/documentation/controls/raddiagram/items-manipulation/raddiagrams-features-clipboard)
* [Removing Items](https://www.telerik.com/products/wpf/documentation/controls/raddiagram/items-manipulation/raddiagrams-features-delete)
* [Selection](https://www.telerik.com/products/wpf/documentation/controls/raddiagram/items-manipulation/raddiagrams-features-selection)
