Move Input handling to separate thread.