---
title: "inputText(_:key:modifiers:client:)"
framework: Objective-C Runtime
role: symbol
role_heading: Instance Method
path: "objectivec/nsobject-swift.class/inputtext(_:key:modifiers:client:)"
---

# inputText(_:key:modifiers:client:)

Receives Unicode, the key code that generated it, and any modifier flags.

## Declaration

```swift
func inputText(_ string: String!, key keyCode: Int, modifiers flags: Int, client sender: Any!) -> Bool
```

## Parameters

- `string`: The text input by the client.
- `keyCode`: The key code for the associated Unicode.
- `flags`: The modifier flags.
- `sender`: The client object.

## Return Value

Return Value YES if the input is  accepted; otherwise NO.
