pub fn key_pressed_within(timeout: Duration) -> Result<Option<Key>>
Waits for a key press for up to the specified timeout duration.
timeout