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

# sendKey(with:completionHandler:)

## Declaration

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

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