Skip to main content
Issues a single key press. Use + to combine modifiers, e.g. Meta+Enter, Control+Shift+P.

Parameters

ParameterTypeRequiredDescription
keystringYesKey name or chord (e.g. Enter, Meta+Enter).
repeatnumberNoNumber of times to repeat the press.
delaynumberNoMilliseconds between key down and key up.
convertMetabooleanNoTranslate Meta to Control on non-mac platforms.
saveAsstringNoName of the variable to write this step’s return value to.
retriesnumberNoNumber of times to retry the step on failure before failing the test.
skippedbooleanNoSkip this step at execution time.

Shorthand

Key name as a single string.
- press: Enter

Examples

- press:
    key: Meta+Shift+Enter
- press:
    key: Control+Shift+Enter
    convertMeta: true
- press:
    key: ArrowDown
    repeat: 3