public override HashSet <IRenderComponent> GetRenderComponents()
 {
     if (Focused)
     {
         BlinkTimer++;
         if (BlinkTimer % 64 > 32)
         {
             ButtonText.SetText("");
         }
         else
         {
             ButtonText.SetText("Press new key");
         }
     }
     return(base.GetRenderComponents());
 }
 private void OnCancelInputs(object sender, EventArgs eventArgs)
 {
     Focused = false;
     ButtonText.SetText(KeyManager.Instance.GetKey(KeyActionType).ToString());
 }
 private void OnMenuRefreshKeys(object sender, EventArgs eventArgs)
 {
     ButtonText.SetText(KeyManager.Instance.GetKey(KeyActionType).ToString());
 }