readkey 0.1.2

A very small library for finding out if a key is currently pressed. Currently only supports macOS.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Example usage

Check if the `Up` key is currently pressed:

```rust
use readkey::Keycode;

fn main() {
  loop {
    println!("State of Up key: {}, ", Keycode::Up.is_pressed());
  }
}
```