NEW YORK (AP) This time, it was Masahiro Tanaka who was untouchable on the mound.

And when the New York Yankees sent Houston ace Dallas Keuchel to an early exit, their rollicking crowd let loose with a cathartic roar that must have boomed all over the Bronx.

"New York is no joke," Keuchel said afterward.

One more big win, and these Yankees are World Series-bound.

Tanaka pitched seven innings of three-hit ball and New York finally solved a longtime nemesis at just the right moment, beating Keuchel and the Astros 5-0 on Wednesday for a 3-2 lead in the AL Championship Series.

"What a performance," Yankees third baseman Todd Frazier said about Tanaka. "Just gutsy."

Gary Sanchez hit an RBI single off Keuchel and later homered to help the wild-card Yankees win for the third straight day at home, moving them within one victory of their first pennant since 2009 and record 41st overall.

The teams head back to Houston for Game 6 on Friday night, when Justin Verlander and the reeling Astros will try to regain their footing following an off day and force a decisive Game 7. Luis Severino is scheduled to start for New York.

To take the series, the Yankees knew they needed to win at least one game started by Keuchel or Verlander, both Cy Young Award winners. Now they've done that - and they don't want to let Houston back up.

"Don't wake that sleeping dog. So we've got to just keep on rolling," Frazier said. "They're going to be ready to go. We know that."

Houston arrived up two games to none and appeared to be closing in on its second World Series appearance. But the Astros, like defending AL champion Cleveland before them, have been unable to put away these poised Yankees, who improved to 6-0 at home this postseason in front of their cheering, chanting fans.

New York has won 19 of its past 22 games at Yankee Stadium.

"It's been unbelievable. I haven't seen anything like it in Major League Baseball," veteran Chase Headley said. "Reminds me of college football games. They're going crazy the entire game. It's a huge advantage for us."

Keuchel had been Yankees kryptonite, entering 6-2 with a 1.09 ERA in eight career starts against New York - including a pair of scoreless outings in playoff wins.

Both of those came at the expense of Tanaka, who lost 3-0 to Keuchel in the 2015 AL wild-card game at Yankee Stadium and 2-1 in Game 1 of this series. The ace lefty with the long, bushy beard entered 4-0 with a 1.69 ERA and 31 strikeouts in 26 2/3 postseason innings overall.

But this night belonged to Tanaka and the Baby Bombers.

New York finally broke through against Keuchel with two outs in the second, when Starlin Castro doubled and scored on Greg Bird's sharp single. The sellout crowd of 49,647 almost sounded surprised by the hit - big enough for Bird to flash both thumbs down, doubling up on the Yankees' playful sign to each other for clutch swings.

"The most frustrating part is the fact that I didn't pick the guys up and they were looking towards me to kind of saddle up and get this thing back going again," Keuchel said. "That's a talented group over there and 1 through 9 right now the bats have woken up and it's quite a challenge."

In the third, Judge grounded an RBI double just inside the third base line and past a diving Alex Bregman. Brett Gardner sped all the way around from first and scored with a headfirst slide.

Bregman's throwing error on an infield single by Headley, who had three hits in the No. 9 spot, aided the Yankees in the fifth. Keuchel walked Judge with two outs before Sanchez lined a run-scoring single into the left-field corner.

Going into that at-bat, Sanchez was 1 for 16 with seven strikeouts in the series - and 0 for 8 with six strikeouts against Keuchel overall.

Gregorius then grounded an RBI single up the middle that grazed the glove of diving second baseman Jose Altuve. That ended the night for Keuchel and gave the Yankees a 4-0 cushion, the most runs he had ever allowed against them.

With the stands pulsating, fans reveled in his slow walk to the dugout as the Yankee Stadium sound system blared Scandal's "Goodbye To You."

"When you play at home, things like this happen and that's why it's so tough to win on the road in the playoffs," Keuchel said. "Yankee Stadium is a tough place to play and it was rockin' these three games, but it's going to be rockin' on Friday for us."

Sanchez hit his third postseason homer off Brad Peacock in the seventh to make it 5-0.

Despite beautiful weather in the Bronx, the Astros didn't take batting practice on the field. If they were hoping that might help their slumping hitters reset, it didn't.

"One swing and we'll be back where we need to be," Bregman said. "We're going home. We've got to fight back."

The highest-scoring team in the majors this season, Houston is batting .147 in the series and Tanaka is a major reason. The normally reserved right-hander from Japan, who can opt out of his $155 million contract this winter, has been at the top of his game in October and showed rare emotion on the mound during this one.

He worked around a leadoff double in the second, when the Yankees - with a stingy Keuchel undoubtedly in mind - successfully played their infield in with Yuli Gurriel on third and one out in a scoreless game.

Tanaka later spun around and shouted in excitement after striking out struggling table-setters George Springer and Josh Reddick with two on to end the fifth.

"I love it. Those are the best guys. To see that, it gets me fired up again," Frazier said. "He's been doing it all postseason. Just dominant, man. You see him out there, he talks to himself, he does all this crazy stuff and the next thing you know the ball just disappears on batters."

Keeping the ball down with his slider and splitter, Tanaka struck out eight and walked one. Tommy Kahnle tossed two innings to finish the four-hitter.

Tanaka also beat the Indians 1-0 in the Division Series to save the Yankees' season when they were down 0-2 in that best-of-five playoff. After going 13-12 with a 4.74 ERA during an inconsistent season, he has a 0.90 ERA in three playoff starts.

"I feel like I'm just keeping it really simple," Tanaka said through a translator. "You go out there and you fight and you empty the tank."

MISTER OCTOBER

Wednesday marked the 40th anniversary of Reggie Jackson's three-homer game at old Yankee Stadium in the 1977 World Series against the Los Angeles Dodgers.

COMING UP EMPTY

The lowest team batting average in league championship series history was .155 for Minnesota during a three-game sweep by Baltimore in 1969.

UP NEXT

Astros: Verlander is 8-0 in eight outings for Houston since agreeing to a trade from Detroit, just minutes before the Aug. 31 deadline for postseason eligibility. The 2011 AL MVP is 3-0 with a 2.04 ERA in these playoffs, including a series-clinching victory in relief during the Division Series against Boston and his five-hitter with 13 strikeouts to beat the Yankees on a season-high 124 pitches in Game 2. The right-hander is 10-5 with a 3.18 ERA in his postseason career.

Yankees: Severino gave up one run and two hits over four innings in Game 2 but was pulled as a precaution after only 62 pitches because manager Joe Girardi was concerned about the 23-year-old righty pitching hurt, saying he didn't look comfortable in his mechanics. By now, the Yankees are confident he's fine.