Overview
Push one or more keyboard keys at the same time. Use this for keyboard shortcuts, navigation, and special keys.Syntax
Parameters
Array<string>
required
An array of the keys to push at the same time
Returns
Promise<void>
Common Keys
Special Keys
'enter','tab','escape','backspace','delete''space','up','down','left','right''home','end','pageup','pagedown'
Modifier Keys
'ctrl','alt','shift''command'(macOS),'win'(Windows)'ctrlleft','ctrlright','shiftleft','shiftright'
Function Keys
'f1'through'f24'
Examples
Navigation
Keyboard Shortcuts
System Shortcuts
Form Submission
Text Editing
Best Practices
Wait after shortcutsSome keyboard shortcuts trigger animations or navigation:
Use Tab for form navigationTab is more reliable than clicking multiple fields:
Use Cases
Text Manipulation
Text Manipulation
Application Shortcuts
Application Shortcuts

