pub fn is_key_pressed(key: impl Borrow<Key>) -> bool
Returns true if the specific key is pressed. Note that you may pass either an owned Key or a borrowed &Key.
Key
&Key