How to get a touchscreen interaction with the KeyuP rather than space in unity?

using UnityEngine;

public class PowerMan231 : MonoBehaviour
{
// Force per jump

public Vector2 jumpForce = new Vector2(0, 300);

// 1 frame update
void Update()
{
    // Go up
    if (Input.GetKeyUp("space")) //How to change the .getkeyup to the touch fn?
    {
        GetComponent<Rigidbody2D>().velocity = Vector2.zero;
        GetComponent<Rigidbody2D>().AddForce(jumpForce);
    }

    // Die by being off screen
    Vector2 screenPosition = Camera.main.WorldToScreenPoint(transform.position);
    if (screenPosition.y > Screen.height || screenPosition.y < 0)
    {
        Die();
    }
}

// Dearth Be Upon Thee

check here

Hi,

Don’t use Input.GetKeyUp ( "name of the touch" ). Use instead Input.GetKeyUp(Keycode.Space).
Now when you want to change the key, you juste change .Space to .A or .a or whatever !