Corrected number of script arguments in InputManager::SendKeystrokes.

In a recent refactor, this code was slightly changed, and the declaration of a
Script object was expecting three arguments instead of the required four.
Fixes issue #5502.