Handle input event before collecting randomness