Correct timeout in input event callback.