public virtual void Initialize(bool isGlobalKeyboard)
 {
     keyboard = new ImpKeyboard <TCmdType>();
     keyboard.Add(GenerateDefaultKeyCommands());
     if (isGlobalKeyboard)
     {
         globalKeyboard = true;
         GlobalKeyboard.SetModifierKeys(keyboard.ModKeys);
     }
 }
        public virtual void Update()
        {
            var cmdList = keyboard.Update(Selected, AllowedStyles);

            GlobalKeyboard.SetModifierKeys(keyboard.ModKeys);
            if (Focused)
            {
                foreach (var command in cmdList)
                {
                    Exec(command.Command, command.Argument);
                }
            }
        }