For this example its all about knowing the key squares. Once you gain some understanding of that, youll know what to do.
Start with the basics. Understand that the key squares are f6-g6-h6. Which king can get to a key square first? The black king is 2 square from the key square f6, while the white king is 4 squares away from f6. So that will tell you that 1.Kf3 wont work. So now we move on to the key square g6. The black king can get to g6 in 3 moves, while the white king will take 4 moves. So you know that wont work. Now we get to the key square h6. It will take both kings 4 moves to get to h6, but white moves first.
That's brilliant! Great, that really makes it simple, thank you!
Unfortunately not quite so simple. If you look at the position after two moves in my first diagram in post #14 viz:
It will take both kings 2 moves to get to h6 (or f6, g6), but white moves first.
That doesn't help. He still draws.
If it were Black to move, he should not approach the key squares. Only 1...Kg8 draws (to reach e.g. @llama47's third position in post #17).
The important principle here is that black can draw only if he gets his king in front of the pawn while preventing the white king getting in front of the pawn. With Kg3 and Kh4 white gets around his pawn before black can get there.
The position white wants to reach is P on g4, K on g5, black K on g7 with black to move. Whichever way black then moves, white can advance his king the other direction, making it possible to escort the pawn to the eighth rank.
This position is explained in every basic book on the endgame. Just studying basic endgame principles and knowing which are won, drawn and lost is an invaluable tool. It will enable you to decide whether to simplify into an ending or complicate play in the middlegame.
Incidentally, you can doubtless figure out why this technique doesn't work with rook pawns.