Function key_press
pub fn key_press(logical_key: Key, text: Option<&str>) -> WindowEventExpand description
logical_key pressed, typing text.
pub fn key_press(logical_key: Key, text: Option<&str>) -> WindowEventlogical_key pressed, typing text.