# Sandbox.Input.Keyboard.CancelCapture

```csharp
static void CancelCapture()
```

Back out of the capture started by `M:Sandbox.Input.Keyboard.Capture(System.Action{System.Collections.Generic.IReadOnlyList{System.String}})`, if there is one. Its callback is called with no buttons.

Declared in [Sandbox.Input.Keyboard](/api/Sandbox.Input.Keyboard).
Assembly: `Sandbox.Engine`.
