# setNuiKeepInput (Client)

> Chooses whether the game keeps getting the mouse and the keyboard while an interface page has focus.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Web interface
- **URL**: https://wiki.mymp.gg/en/setNuiKeepInput

## Syntax

```lua
bool setNuiKeepInput(bool keep)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `keep` | `bool` | `true` for the game to keep getting input, `false` for the page to take it. |

## Returns

Always `true`, unless the argument is wrong.

The choice holds for every page, not just the calling resource's.

## Example

```lua
setNuiFocus(true)
setNuiKeepInput(true)
```

## See also

- [setNuiFocus (Client)](https://wiki.mymp.gg/en/setNuiFocus.md): Gives or takes focus from the calling resource's interface page. With focus, the page gets the mouse and the keyboard.
- [isNuiFocused (Client)](https://wiki.mymp.gg/en/isNuiFocused.md): Tells whether any interface page has focus.
