use noct::{Key, KeyboardControllable, Noct}; use std::thread; use std::time::Duration; fn main() { thread::sleep(Duration::from_secs(2)); let mut noct = Noct::new(); noct.key_down(Key::Layout('a')); thread::sleep(Duration::from_secs(1)); noct.key_up(Key::Layout('a')); }