I am trying to write a bash script that waits for a keypress/input to open a new terminal and runs an infinitely looped process, and then again waits for another keypress/input