pressKey
Simulate pressing a key by name.
Supports common key names:
"Backspace"— deletes one character before the cursor"Delete"— deletes one character after the cursor"Enter"— inserts a newline"Tab"— inserts a tab character
Throws
for unrecognized key names.