# LibTmux.Pane.SendKeysAsync

- **Module:** LibTmux.Pane
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Pane.Input.cs#L63
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-pane-sendkeysasync/

```
LibTmux.Pane.SendKeysAsync(request: SendKeysRequest, cancellationToken: CancellationToken) -> Task
```

Sends keys to the pane.

## Parameters

- `request` (SendKeysRequest): What to send.
- `cancellationToken` (CancellationToken): Cancels the tmux commands.

## Raises

- `ArgumentException`: The request sends nothing.
- `LibTmuxException`: Text was sent, but a requested Enter failed. Its dispatch state is
unknown, so the whole request must not be retried.
