User input without halting the loop.(solved)