Press and hold the Fn (Function) key to see F1 through F12 in your Touch Bar. Show> Choose Apple menu  > System Preferences, then click Keyboard. Click Shortcuts at the top of the window, then select Function Keys from the list on the left. Click the add button (+), then select an app and click Add.