pub fn press_key(key: impl Into<Key>, text: Option<SmolStr>) -> Event
Returns the sequence of events of a key press.