Update InputDevice.py