About

This crate allows asking global (system-wide) key state (pressed or not) even when the app has no focus.
Windows and Linux supported.

Examples

// asking if Escape key is pressed right now
let answer = iskeypressed(KeyCode::KEsc);

// asking if keyboard key T is pressed right now
let answer = iskeypressed(KeyCode::KT);