Function normalizeInputReaction