You can use command-left arrow and command-right arrow to move the cursor to the beginning or end of the current line. The home and end keys do not move the cursor on Macs, but instead scroll the document; the home key scrolling to the top and the end key scrolling to the bottom.