While writing code on Windows, the [HOME] and [END] key allow me to move to the begining or end of a line, but this is not the default behavior on MacOS while i am doing development at the moment. Since i love this feature and would like to have something similar, after digging i found the following way that works for me.
Download, install and run the Karakiner (https://pqrs.org/osx/karabiner/), In its "Change Key" tab, search for "Use PC style home/end", Now check to enable this feature, and there you have the PC style home/end shorts which allows to move to the begining or end of a line when pressing the [HOME] or [END] key