# Keyboard Action Is Not Working As Expected

If you use keyboard commands and they are not producing the effect you need, here are some common problems and how to solve them:

* Increase delays, as keyboard commands may take longer to take effect. See [Delay Times between the Building Blocks](/using-zerowork/using-building-blocks/building-block-options/delay-times-between-the-building-blocks.md). Ensure to increase the delay in the **preceding** building block, so that there is enough time for the website to load after the previous action.
* If you have multiple keys in the Keyboard Action building block and you need them to be hit sequentially (as opposed to a shortcut), separate each key into a separate building block and add some delay between the building blocks. For example, if you need your TaskBot to hit *Tab* twice, it is better to have two separate building blocks.

❌ **Might work but not recommended:** Hitting *Tab* twice in one 'go' might be interpreted as a shortcut.

<figure><img src="/files/1junTeiKlHf9AZ7OFVtw" alt=""><figcaption></figcaption></figure>

✅ **Better:** Two separate *Keyboard Action* building blocks, each hitting *Tab* once.&#x20;

<figure><img src="/files/DqmrlwYbLngJyIPhqHQF" alt=""><figcaption></figcaption></figure>

* For shortcuts, order matters! For example, to select a piece of text with *Shift* + *A*, you need to adhere to the order of the keys.

❌ **Won't work - wrong order**

<div align="left"><figure><img src="/files/nt1PeQ5vxyKsyCAHULMy" alt=""><figcaption></figcaption></figure></div>

**✅ Works - order is correct**

<div align="left"><figure><img src="/files/eJ9jFmMoBMZRCTE4zUBU" alt=""><figcaption></figcaption></figure></div>

* Using native browser commands. ZeroWork can operate within the website context, but not within the native browser commands. So, say, if you want to hit CTRL/CMD+P (to print something),  CTRL/CMD+F (to search for something),  CTRL/CMD+S (to save website as html) or use a browser shortcut command to maximize a window, that won't work.
* Use [Click Web Element](/using-zerowork/using-building-blocks/click-web-element.md) with a selector instead of keyboard commands. Selectors are generally  more reliable than keyboard commands.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zerowork.io/using-zerowork/common-problems/keyboard-action-is-not-working-as-expected.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
