Removed key press exit, as it was blocking