Updated InputDevice to fix a NoSuchMethodError exception