private static void AddKeys(WinFormsKeys fromKey, Keys toKey) { if (!mapKeys.ContainsKey((VirtualKey)fromKey)) { mapKeys.Add((VirtualKey)fromKey, toKey); } }