i have written a script that spawns some threads.... all run in parallel.... now i need to stop all the threads once i press a key(example: "\n") how to do it...