pub fn on_key_pressed<Body>(&self, key: KeyCode, action: Body)
    where
        Body: FnMut(), {
        self.keyboard.on_key_pressed(key, action);
    }
/// convenient function to run `action` if `key` is pressed during the current frame
convenient function to run `action` if `key` is pressed during the current frame
convenient function to run ` action ` if ` key ` is pressed during the current frame
pub fn on_key_pressed<Body>(&self, key: KeyCode, action: Body)
    where
        Body: FnMut(), {
        self.keyboard.on_key_pressed(key, action);
    }
pub fn on_key_pressed < Body > ( & self , key : KeyCode , action : Body ) where Body : FnMut ( ) , { self . keyboard . on_key_pressed ( key , action ) ; }
convenient function to run `action` if `key` is pressed during the current frame
convenient function to run ` action ` if ` key ` is pressed during the current frame
&self
key
KeyCode
action
Body
&self
key
KeyCode
action
Body