In Sequoia 15.5 for example, you have to type "Function keys" in the System Settings help.
And then you can just use "F10" and so on