Mouse Movement In Pause Menu

Hey guys! i have a problem.
When i go into my pause menu i get the mouse showing, but i gets stuck in the middle of the screen. when i playtest in Unity i can use the mouse, but as soon as i do it as a builded version, it gets stuck :frowning:

Here is my code for the pausemenu:

using UnityEngine;
using System.Collections;

public class Pause : MonoBehaviour {

private ShowPanels showPanels;
private bool isPaused;
private StartOptions startScript;

void Awake()
{
	showPanels = GetComponent<ShowPanels> ();

	startScript = GetComponent<StartOptions> ();
}

void Update () {

	if (Input.GetButtonDown ("Cancel") && !isPaused && !startScript.inMainMenu) 
	{
		DoPause();
	} 
	else if (Input.GetButtonDown ("Cancel") && isPaused && !startScript.inMainMenu) 
	{
		UnPause ();
	}

}

public void DoPause()
{
	isPaused = true;
	Time.timeScale = 0;
	showPanels.ShowPausePanel ();
	GameObject.Find("Player").GetComponent<FirstPersonController>().enabled = false;
	Cursor.visible = true;
}

public void UnPause()
{
	isPaused = false;
	Time.timeScale = 1;
	showPanels.HidePausePanel ();
	GameObject.Find("Player").GetComponent<FirstPersonController>().enabled = true;
	Cursor.visible = false;
}

}

Try these:

Cursor.lockState = CursorLockMode.Locked;
Cursor.lockState = CursorLockMode.Confined;
Cursor.lockState = CursorLockMode.None;

Basicly do:

Cursor.lockState = CursorLockMode.Confined;

On pause, and:

Cursor.lockState = CursorLockMode.Locked;

On unpause.