Windows shortcut
End
Mac shortcut
Fn→
This shortcut enables and disables “End mode”. In End mode, arrow keys move you farther across the worksheet. In End mode, pressing an arrow key will take the cursor to the first nonblank or blank cell in the same row or column.