Use simple map instead of unnecessary KeyMap instance