make a gui pop open when pressing button not working

I get the error code cs0149 method name expected
im new to coding so its probably something simple im not seeing.
its meant to open a gui with button when you press a button to send you to the main menu
it works when there is no “if (input.getkeydown)”
and if you know how to make a gui open happen when you get within a radius of an object that would be awesome. thanks in advance.

using UnityEngine;
using System.Collections;

public class backtothemenu : MonoBehaviour {

	// Use this for initialization
	void Start () {

	}
	
	// Update is called once per frame
	void Update () {
		}

		void OnGUI() {
		//note make a background for the button
		if ( Input.GetKeyDown ("i") (GUI.Box (new Rect (1, 1, 250, 100), "dont leave me ;-;")));
		           
		//change the key from I to escape
			if (Input.GetKeyDown ("i")) if (GUI.Button (new Rect (50, 25, 140, 50), "click to go home :-(")) {
				Debug.Log ("BYE!"); Application.LoadLevel ("main menu");
			
		}
			}

}

You syntax on line 17 is messed up. You don’t terminate your ‘if’ with a ‘)’ and you have unwanted ‘(’ and ‘)’ around your GUI.Box call. Change the line to:

	if (Input.GetKeyDown ("i"))
		GUI.Box (new Rect (1, 1, 250, 100), "dont leave me ;-;");