Fix InputEvents type