# Keyboard Action

This action hits the keys of a keyboard. The keys can be, for example, Enter, backspace, ->, <-, individual letters or shortcuts such as CMD+C/CTRL+C.

### **Tip 1: Use Keyboard Shortcuts**

Check available shortcuts for your application. By using these shortcuts, you will be able to save a lot of time and skip many building blocks.

Useful resources:

* [Facebook shortcuts](https://www.webfx.com/blog/social-media/facebook-cheat-sheet-of-keyboard-shortcuts/)
* [Slack shortcuts](https://slack.com/help/articles/201374536-Slack-keyboard-shortcuts)
* [Instagram shortcuts](https://greasyfork.org/en/scripts/374589-instagram-keyboard-shortcuts)

### Tip 2: Use Tab

In pretty much every application, you can tab your way through to virtually any element. Using tab can be especially useful when you need to fill out forms.&#x20;

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

Try it out yourself! Go to <https://www.wikipedia.org/> and start pressing *Tab.* You will see how you can navigate through the options this way. Next, try pressing *Enter* when an option is in focus after tabbing to it - you will see that the element in focus opens. Now, for example, you can count how many tabs you need to get to the option "Wiktionary" - as of today, we needed to press *Tab* 9 times and then press *Enter*.

### Tip 3: Use Shift +  Tab

With Tab you can navigate your way forward and with *Shift + Tab* you can navigate your way ***backwards***. Order matters, so be sure to first add *Shift* and then *Tab* (as opposed to *Tab*, then *Shift*).

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

### Tip 4: Use Escape

Is there a pop-up asking something or a chatbot that pops up and disrupts your TaskBot or a dropdown that needs to be closed before your TaskBot can proceed? Very often, the solution to this problem is to let your TaskBot hit the key *Escape*.

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

### Tip 5: Reload Page

You can use CMD + R (Mac) / CTRL + R (Windows) to reload the page. Note that CMD and CTRL are displayed as Meta in our application.

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

### Browser Native 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), CMD+S (to save website as html) or use a browser shortcut command to maximize a window, that won't work.

### Troubleshooting

If you think Keyboard Action building block is not working as expected, please review this page with common issues: [Keyboard Action Is Not Working As Expected](/using-zerowork/common-problems/keyboard-action-is-not-working-as-expected.md).

### Video Tutorial

{% embed url="<https://youtu.be/gx_qXNK-BDw?si=9oJXqT1hgKIV7cuM>" %}


---

# 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/using-building-blocks/keyboard-action.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.
