---
title: " Key Press Selenium Step"
url: "https://docs.robotiq.ai/en/article/key-press-selenium-step"
language: "en"
last_updated: "2025-12-24T15:27:19.589Z"
---

#  Key Press Selenium Step

The Key Press Selenium Step lets you type a single keyboard key on a website. You can use it to send specific key presses, like "Enter" or "Escape," or to make hotkey combinations.

## How to Use Key Press Selenium Step

Use this step to send keyboard input to a web page using your Selenium driver.

### Step 1: Add the Key Press Selenium Step

1.  Drag and drop the **Key Press Selenium Step** into your process.
2.  Give the step a name in the **Step Name** field (this is optional, but helpful).

### Step 2: Set Up Key Press Parameters

1.  **Single key:** Type the key you want to press. For example, "Enter," "Escape," or a letter.
2.  **Modifier key** (Optional): If you're making a hotkey, pick a modifier key (like "Ctrl," "Alt," "Shift") from the dropdown menu. Click **Add modifier key** to include it.
3.  **Number of repetitions** (Optional): Type how many times you want to press the key.
4.  **Pause between keystrokes \[ms\]** (Optional): Type a number in milliseconds to add a delay between repeated key presses.

### Step 3: Pick the Driver

1.  **Driver Reference:** Type the name of the variable that holds your active Selenium driver. This tells the step which browser to use.

## Parameters Explained

**Step Name** (Optional)

-   A custom name for this step in your process.
-   Example: "Press Enter Key"
-   This helps make your process easier to understand.

**Modifier key** (Optional)

-   A key like Ctrl, Alt, or Shift that you press with another key.
-   Example: "Ctrl"
-   Use this to make hotkey combinations.

**Single key** (Required)

-   The main key you want to press.
-   Example: "Enter", "A", "Escape"
-   This is the main input for the step.

**Number of repetitions** (Optional)

-   How many times the key should be pressed.
-   Example: 3
-   Use this when you need to press the same key multiple times.

**Pause between keystrokes \[ms\]** (Optional)

-   The delay in milliseconds between each key press when you're repeating keys.
-   Example: 100
-   Use this to control how fast repeated key presses happen.

**Driver Reference** (Required)

-   The variable name that stores your Selenium driver.
-   Example: `myBrowserDriver`
-   This connects the step to your open web browser.

## Related Articles

-   [Web Automation with Selenium](https://docs.robotiq.ai/en/article/web-automation-with-selenium)
-   [Open Selenium Step](https://docs.robotiq.ai/en/article/open-selenium-step)
-   [Input Selenium Step](https://docs.robotiq.ai/en/article/input-selenium-step)

## Need Help?

Can't find what you're looking for? Join the [Robotiq Community](https://community.robotiq.ai/home/) to get help from other users and the Robotiq team.

![](https://cdn-assets.productfruits.com/d32be493-56f9-4d86-9452-88474b9ffdfb)
