For Macs without dedicated physical keys, you can create a virtual "shortcut" in your Menu Bar: Open the Apple Menu and select . Navigate to Control Center in the sidebar.
F5 (key with a sun/light icon)
Most modern MacBooks and Apple keyboards have dedicated keys for this function. They are usually located in the top row (the F-keys). keyboard brightness shortcut mac
To fix this: