For those ctrl+a and ctrl+e are the way to go.
Just a note - first time I see this and you just made my day, as Home/End behaviour on Mac was driving me crazy since I switched 7 YEARS AGO