Suppose the Blue striker takes a long range shot, from about 30 yards from goal. It is not struck with tremendous pace, but it is perfectly aimed toward the center of the goal, and will surely go in if not blocked. The Red goalkeeper is standing directly in the path of the ball, and clearly should not be troubled by the shot (although, it is always possible that he could make a gross error). A Red defender, standing just outside the top of the penalty area, cynically lunges to his right and stops the ball dead in its tracks with his hands, redirecting it to his feet. No other players are nearby. Do you send the defender off for DOGSO-H?
No, a straight red card for a handball only occurs if there is no defender between the spot of the foul and the open goal and the ball is heading into the goal. The obvious example is the defender on the goal line stopping it with his hand. Another example is the goalie who is out of the box commits a hand ball offense and there is no defender behind him. In your situation the goalie is in the path of the ball, and I would assume behind the site of the handball, therefore no Red. But Certainly a yellow.