Swap Between Third And First Person View

I want to make it so that when I press a button (TAB) it will switch from first person to third person
vice versa

cant seem to figure out how?

Did you google it?