Move 29.
DO. NOT. TAKE. THAT. ROOK!
If you look forward during the game, you can see that the king is restricted to only a few moves. If it was a slower-paced (more time/increment) game, maybe you could have seen it.
You have just taken a big step toward avoiding them. You've fallen into one. :)
Tactical exercises never have the impact of real-game situations. You've learned this one now, and you'll always remember it.