Don't pass the event object to the handler function, but return a value instead and let the keyboardUtil do the job, since it knows the event object.
Trying to make the test more readable.