1. Kf5! Now the bishop must move, and then 2. h8=Q+ Bb8 3. Qh1#
Note that the king’s waiting move must be to f5. Moving to a black square leaves him vulnerable to a check; moving to the h-file blocks the queen’s access to h1; and moving to f3 blocks the queen’s final checkmate.