class Playwright::Keyboard
def down(key)
[`method: Keyboard.up`].
[repeat](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat) set to true. To release the key, use
After the key is pressed once, subsequent calls to [`method: Keyboard.down`] will have
modifier active. To release the modifier key, use [`method: Keyboard.up`].
If `key` is a modifier key, `Shift`, `Meta`, `Control`, or `Alt`, subsequent key presses will be sent with that
respective texts.
If `key` is a single character, it is case-sensitive, so the values `a` and `A` will generate different
Holding down `Shift` will type the text that corresponds to the `key` in the upper case.
`ControlOrMeta` resolves to `Control` on Windows and Linux and to `Meta` on macOS.
Following modification shortcuts are also supported: `Shift`, `Control`, `Alt`, `Meta`, `ShiftLeft`, `ControlOrMeta`.
`Delete`, `Escape`, `ArrowDown`, `End`, `Enter`, `Home`, `Insert`, `PageDown`, `PageUp`, `ArrowRight`, `ArrowUp`, etc.
`F1` - `F12`, `Digit0`- `Digit9`, `KeyA`- `KeyZ`, `Backquote`, `Minus`, `Equal`, `Backslash`, `Backspace`, `Tab`,
[here](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values). Examples of the keys are:
generate the text for. A superset of the `key` values can be found
[keyboardEvent.key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) value or a single character to
`key` can specify the intended
Dispatches a `keydown` event.
def down(key) wrap_impl(@impl.down(unwrap_impl(key))) end