> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.xsplit.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Toggling Source Visibility with Key Press

Normally, clicking the **eye icon** in the **Source List** toggles a source's visibility on and off:

![Toggling a source's visibility on and off using the eye icon from a scene's source list in XSplit Broadcaster](https://storage.crisp.chat/users/helpdesk/website/567507547fcdcc00/001_1hbppfc.gif)

However, there's a way to **quickly toggle a source's visibility on and off** with just a press of a key/click of a mouse. This is made possible using XSplit Broadcaster's **Macros** feature.

---

In this guide we're going to use an Image source to demonstrate.  

1. Make sure the **source is already added to the scene**.

2. Go to **Extensions > Macros**. The **Macros window** should appear.

![Selecting Macros under the Extensions Menu in XSplit Broadcaster](https://storage.crisp.chat/users/helpdesk/website/567507547fcdcc00/002_1yokklo.png)

3. Click the **+ icon** to add a new macro.

![Clicking the + icon on an empty Macros window adds a new one](https://storage.crisp.chat/users/helpdesk/website/567507547fcdcc00/003_c2g4sj.gif)

| If you already have other macros, you can instead click the **+ icon** at the **top-left portion of the window** to add a new one.

4. Choose and select **On key down** under **Event**. A new entry field should appear just below it.

![Selecting "On key down" as an event in XSplit Broadcaster's Macros](https://storage.crisp.chat/users/helpdesk/website/567507547fcdcc00/004_v86156.gif)

5. Click the entry field once, then type in **your preferred key combination or mouse click**. In this guide we'll use **down arrow** as an example.

![Using the Down Arrow as the key down trigger for the Macro](https://storage.crisp.chat/users/helpdesk/website/567507547fcdcc00/005_1i41m9z.gif)

6. Under **Action**, select **Set source visibility** in the drop down menu. Three new dropdown menus should appear.

7. In **Select Scene**, select the **scene** where the source is added.

8. In **Select Source**, select the name of **the source you intend to use**.

9. In **Select visibility**, select **Toggle Visibility**.

![Setting the Action, Select scene, Set source, and Select visibility in Macros](https://storage.crisp.chat/users/helpdesk/website/567507547fcdcc00/006_1yngk07.gif)

| OPTIONAL: Don't forget to rename your Macro by clicking the **Pencil icon** at the top.

10. Check **Enable event listener** to activate the macro.

![Checking Enable event listener to activate the Macro](https://storage.crisp.chat/users/helpdesk/website/567507547fcdcc00/007_1oyg29t.png)

11. To ensure everything is working, it's best to use the **Test button** located at the upper right corner of the Macros extension window. Close the window when done.

![Clicking the Test button at the upper-right corner of the Macros extension window](https://storage.crisp.chat/users/helpdesk/website/567507547fcdcc00/test-button_1s540lq.png)

---

Go back to your scene. Pressing the assigned key should now toggle the visibility of the source on and off.

![An image source's visibility being toggled on and off using Macros](https://storage.crisp.chat/users/helpdesk/website/567507547fcdcc00/008_1fsck4r.gif)

|| Make sure the key combination you're using is not used by other programs/processes running in your system to avoid issues.

