Attempt at fixing the input bug under windows