// Update is called once per frame
 void Update()
 {
     if (!isOnPopUp)
     {
         name.text = EventSystem.current.currentSelectedGameObject.name;
         if (Input.GetKey(GameConstants.U) || Input.GetKey(GameConstants.D) || Input.GetKey(GameConstants.L) || Input.GetKey(GameConstants.R))
         {
             if (name.text != "Random" && name.text != "Random3")
             {
                 DisplayCharacterSelected(name.text);
             }
             else
             {
                 DisplayRandom();
             }
         }
         if (Input.GetKeyDown(GameConstants.ACCEPT) && (chosenChars < maxChars))
         {
             if (name.text != "Random" && name.text != "Random3")
             {
                 ChooseCharacter(name.text);
             }
             else
             {
                 ChooseRandom(name.text);
             }
         }
         if (Input.GetKeyDown(GameConstants.BACK))
         {
             soundEffect.PlaySoundEffect("Back");
             if (chosenChars > 0)
             {
                 UnchooseCharacter();
             }
             else
             {
                 popUp.PopUp();
                 isOnPopUp = true;
             }
         }
     }
     else
     {
         if (Input.GetKeyDown(GameConstants.ACCEPT))
         {
             isOnPopUp = false;
         }
     }
 }