Hi there Mainecoon364,
We can provide some information about how to use shortcuts on your Mac in all your apps.
To start, if you want to go back to the previous webpage you were viewing in Safari, you can use Command-[.
To go forward, use Command-]. Learn more about using Safari shortcuts here: Keyboard shortcuts and gestures in Safari on Mac - Apple Support
To create a go forward or go back shortcut in other apps on your Mac, you can follow these steps:
1. On your Mac, choose Apple menu
> System Preferences, click Keyboard
, then click Shortcuts.
2. Select App Shortcuts on the left, click the Add button
, click the Application pop-up menu, then choose a specific app or All Applications.
For example, to set a shortcut for a TextEdit command, choose TextEdit. If an app isn’t in the list, choose Other, then locate the app using the Open dialog. Some apps may not allow you to set keyboard shortcuts.
If you want to set a shortcut for a menu command that appears in many apps, choose All Applications.
3. In the Menu Title field, type the menu command for which you want to create a shortcut, exactly as the command appears in the app, including the > character (type ->), ellipses (type three periods without spaces or press Option-; (semi-colon)), or other punctuation.
For example, to set a shortcut for the default ligature command in TextEdit (Format > Font > Ligatures > Use Default), you would type Format->Font->Ligatures->Use Default in the Menu Title field. To set a shortcut for the Export as PDF command (File > Export as PDF…), you would type File->Export as PDF… in the field.
4. Click in the Keyboard Shortcut field, press the key combination that you want to use as the keyboard shortcut, then click Add.
For example, press the Control, Option, and Z keys at the same time. You can use a key only once in a key combination.
You'll find this information here: Create keyboard shortcuts for apps on Mac - Apple Support
Take care!