UI button not working, how to assign to enter key?

The quit & replay buttons both work, but the quit popup button does not, any idea what I’m missing here? I would also like to assign it to the enter key.

public class Buttons : MonoBehaviour

{
    public GameObject DialogPopup;

        public void QuitPopup()
    {
        Debug.Log("X");
        Input.GetKeyDown(KeyCode.KeypadEnter);
        DialogPopup.SetActive(true);
    }

    public void LaunchGame()
    {
        Time.timeScale = 1;
        SceneManager.LoadScene(1);
    }

    public void QuitGame()
    {
        Debug.Log("QUIT");
        Application.Quit();
    }
}

Try nesting the button that doesn’t work in the same hierarchy in the editor as the buttons that do work. Does that fix it?