I'm using a Magic Keyboard with both my windows laptop and my Macbook Pro. When on MacOS, the Home and End keys default to Page Up and Page Down.
How do I remap the Home key to act as the Home button (moving the cursor to the beginning of a line) and similarly with the end key, moving the cursor to the end of the line?