Diff. btw. getch() and return function

when to use getch() and return function?