Check out example codes for "input.getkeyup". It will help you in understanding the concepts better.

Code Example 1

if (Input.GetKeyUp(KeyCode.Space))
{
	Debug.Log("Space button is released");
}

Learn ReactJs, React Native from akashmittal.com