# Mac (Ventura) I wanted to map home & end keys to beginning/end of line
mkdir ~/Library/KeyBindings
touch ~/Library/KeyBindings/DefaultKeyBinding.dict
# open in editor and paste
{
"\UF729" = moveToBeginningOfLine:;
"\UF72B" = moveToEndOfLine:;
"$\UF729" = moveToBeginningOfLineAndModifySelection:;
"$\UF72B" = moveToEndOfLineAndModifySelection:;
"^\UF729" = moveToBeginningOfDocument:;
"^\UF72B" = moveToEndOfDocument:;
"^$\UF729" = moveToBeginningOfDocumentAndModifySelection:;
"^$\UF72B" = moveToEndOfDocumentAndModifySelection:;
}
# reboot computer for this to take affect