I'm going to assume that you are pressing the function key along with F5 and F6. That being said, you can add a toolbar icon to give you a method other than the menu bar or context menu. I don't think you can remap keys.
The F6 key works on my Mac Air M1, never tried F5.