Refactored input handler such that events are kept for a frame, and processInput happens in resolve