Add asynchronous console-input using thread