class Playwright::Keyboard
def type(text, delay: nil)
**NOTE**: Modifier keys DO NOT effect `keyboard.type`. Holding down `Shift` will not type the text in upper case.
```
page.keyboard.type("World", delay=100) # types slower, like a user
page.keyboard.type("Hello") # types instantly
```python sync
**Usage**
To press a special key, like `Control` or `ArrowDown`, use [`method: Keyboard.press`].
Sends a `keydown`, `keypress`/`input`, and `keyup` event for each character in the text.
**NOTE**: In most cases, you should use [`method: Locator.fill`] instead. You only need to press keys one by one if there is special keyboard handling on the page - in this case use [`method: Locator.pressSequentially`].
def type(text, delay: nil) wrap_impl(@impl.type(unwrap_impl(text), delay: unwrap_impl(delay))) end