Does ctrl-A and ctrl-E on a mac work the same as HOME and END on Windows?
In fact this convention is coming from the Emacs text editor on Unix.
Windows copied it 30 years later :).

Of course, this is working in:

emacs


and these 2 shells which inherited the editing line shortcuts of emacs:

bash
zsh


and these Apple graphical interface software:

Calendar
Messages
Notes
TextEdit
LibreOffice
Pages
Finder


On the other hand, this convention is failing in:

vi


and I suspect in some other softwares which have their own set of shortcuts without enough freedom to keep these very old and useful ones.