pub fn on_key(&self) -> u32 {
        match self {
            EventData::OnKey(key) => *key,
            d => panic!("Wrong data type: {:?}", d)
        }
    }
/// Unwraps event data into the virtual key code for `OnKeyPress` and `OnKeyRelease`
Unwraps event data into the virtual key code for `OnKeyPress` and `OnKeyRelease`
Unwraps event data into the virtual key code for ` OnKeyPress ` and ` OnKeyRelease `
pub fn on_key(&self) -> u32 {
        match self {
            EventData::OnKey(key) => *key,
            d => panic!("Wrong data type: {:?}", d)
        }
    }
pub fn on_key ( & self ) -> u32 { match self { EventData :: OnKey ( key ) => * key , d => panic ! ( " " d ) } }
Unwraps event data into the virtual key code for `OnKeyPress` and `OnKeyRelease`
Unwraps event data into the virtual key code for ` OnKeyPress ` and ` OnKeyRelease `
&self