The Blackhawks continued an offensive outburst that began with a 6-2 triumph over Dallas 24 hours earlier.
Chicago scored five times in the second period against the Flyers to win its third in a row. The defending Stanley Cup champion Blackhawks lead the league with 51 points.
Keith tied the game at 1-1 on the power play 43 seconds into the second period and Shaw scored on a wraparound 39 seconds later.
The win went to Antti Raanta, who made 28 saves.