key_pressed_within

Function key_pressed_within 

Source
pub fn key_pressed_within(timeout: Duration) -> Result<Option<Key>>
Expand description

Waits for a key press for up to the specified timeout duration.