combining two sketches then returning to the first from second

Problem solved. I added code at the end of the test-run function to read a keypad press and then used the return to exit the function and return to the first.
Cheers

char key=keypad.getKey();

 if (key == 'D')
 return;
}