Fix InputThread.py