# WaitInput Action

You can use the WaitInput action to pause the typewriter until **any input, or a specific one**, has been performed by the player.

<figure><img src="https://3857371675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXuXUTa2X5PYuYL6yRvl1%2Fuploads%2F7Mct3ruHnB9qGeJ1jm0d%2Fimage.png?alt=media&#x26;token=3c46cfa1-13b4-4bf2-a6e0-a4073e70c3b8" alt=""><figcaption><p>This will wait any input, once the part of the text with "&#x3C;waitinput>" gets shown by the typewriter </p></figcaption></figure>

If you want to **wait for a specific action**, set "Specific Action" on the Input Mode field. You will then be able to map which string corresponds to which action, and use the parameter like the following (based on the example below):

* "`<waitinput=click>`" to wait for the "UI/Click" action
* "`<waitinput=attack>`" to wait for the "Player/Attack" action

<figure><img src="https://3857371675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXuXUTa2X5PYuYL6yRvl1%2Fuploads%2FSafWQv9K6OlUrlnHcUoM%2Fimage.png?alt=media&#x26;token=0d61c2eb-7f44-486b-a4a9-b7498bbe132e" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
In case you do not set any key, the "Default Input Key" will be used instead.
{% endhint %}

{% hint style="success" icon="thumbs-up" %}
You can also use "any" as parameter, which returns the same result as InputMode=AnyInput
{% endhint %}

P.S. Actions must be enabled in order to work. You can either enable them manually, or check the options at the end of the inspector (we suggest to keep them enabled).

{% hint style="warning" %}
Specific actions cannot be set on the Legacy Input System.
{% endhint %}
