public void resetTextToButtons()
    {
        for (int i = 0; i < getMenuLayer().getComponentCount(); i++)
        {
            Component component = getMenuLayer().getComponent(i);
            if (component.getClass() != JButton.class)  continue;
            JButton button = (JButton)component;
            for (Input j : Input.values())
            {
                if (button.getActionCommand().equals(j.toString()))
                    setButtonText(button);
            }
        }
    }