Picture a pawn's square in your mind: one side is the distance from the pawn to its promotion square. If the enemy king can step into this square it catches the pawn; if not, the pawn becomes a queen.
White to move. If you push the pawn, the square shrinks and the black king can't get into it. But if you play anything else, the king enters the square. Play the right move.