In full, the second sentence means something like "The way to achieve this thing (whatever it might be) is a simple as pressing the button", so you could say that "it" refers to the means of doing whatever it is that you're trying to do, and "that" refers to the action of pressing the button.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.