pub fn accelerator_parse(accelerator: &str) -> Option<(u32, ModifierType)>