---
title: "sendKey(with:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterkeypadinput/sendkey(with:completion:)"
---

# sendKey(with:completion:)

## Declaration

```swift
func sendKey(with params: MTRKeypadInputClusterSendKeyParams, completion: @escaping @Sendable (MTRKeypadInputClusterSendKeyResponseParams?, (any Error)?) -> Void)
```

```swift
func sendKey(with params: MTRKeypadInputClusterSendKeyParams) async throws -> MTRKeypadInputClusterSendKeyResponseParams
```
