Presses specific keyboard key.
string|int $char could be either char ('b') or char-code (98):
KeyModifier::*|null $modifier keyboard modifier (could be 'ctrl', 'alt', 'shift' or 'meta'):
void
public function keyPress($char, ?string $modifier = null) { $this->getDriver() ->keyPress($this->getXpath(), $char, $modifier); }