Remap "End" Key on Mac
To remap the "End" key on a PC keyboard attached to a Mac to have the same functionality as on a PC (i.e., go to the end of the line), you can use macOS's built-in keyboard customization feature. Here's how you can do it:
Open "System Preferences" on your Mac. You can do this by clicking on the Apple logo in the top-left corner of your screen and selecting "System Preferences."
In the System Preferences window, click on the "Keyboard" icon.
In the Keyboard preferences, go to the "Keyboard" tab.
Click the "Modifier Keys" button located in the lower-right corner of the window.
A new window will appear, showing a list of your attached keyboards. From the dropdown menu next to your PC keyboard, select the "Option" key.
In the "Action" column for the "Option" key, choose "⌘ Command."
Click the "OK" button to save your changes and close the Modifier Keys window.
Close the Keyboard preferences window.
Now, your "End" key on the PC keyboard should function like the "End" key on a PC, allowing you to go to the end of a line in text editors and word processors when combined with the "Command" key (⌘).
Keep in mind that remapping keys may affect other keyboard shortcuts that use the "Option" key. So, make sure this change doesn't interfere with other keyboard shortcuts you frequently use. If you encounter any issues, you can always revert the key mapping in the Keyboard preferences by following the same steps and setting the "Option" key back to its default behavior.