How to replace KeyCode.Space with a simple tap on Android?

This is the script ( ball controller)
void Update()
{ if (GameplayController.IsGameStarted() && Input.GetKeyDown (KeyCode.Space) && isGrounded) { int pathID = path.pathList [currentPathIndex].id; ApplyJumpAndTurn (path.pathList[currentPathIndex].id); currentPathIndex++;

to get a screen tap on android you would do something like

 ForEach(Touch touch in Input.Touches) {
  if(touch.phase == TouchPhase.Began) {


hope this was what you were looking for, this script would be in Update like yours, too