# 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="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FvxXzuvXlSaLBoQuF6XfB%2FScreenshot%202023-11-21%20at%2012.08.27.png?alt=media&#x26;token=86332a93-f724-4845-a0e5-b452180b9a33" 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="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FuvXKo4RRYgdreDPQcaqa%2FScreenshot%202024-03-02%20at%2013.53.34.png?alt=media&#x26;token=0af77e67-97a3-44e8-95d6-152fc692a2d1" 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="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2Flfsv7UQdxbvOv7dFYITW%2FScreenshot%202024-02-18%20at%2015.10.29.png?alt=media&#x26;token=47a3d7c2-5ef8-4504-afe7-a22472dd3099" 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="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2Fo5WLdrg4dQf5BKbhM7WN%2FScreenshot%202024-02-18%20at%2015.10.57.png?alt=media&#x26;token=3ed192e6-5cd3-41c0-8622-08fea7a46bff" 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](https://docs.zerowork.io/using-zerowork/common-problems/keyboard-action-is-not-working-as-expected "mention").

### Video Tutorial

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