When editing you can go to the beginning of a file by pressing CTRL+HOME. You can go to the end of a file by pressing CTRL+END.