Welcome to the forum, @Sebastien.
Straightforward answer: those keys are for internal use, so forget about them and use other key combinations instead.
@Airy is correct about the fn key and indeed this subject is covered in the FAQ:
The Fn key is not a modifier, it is a hardware toggle that toggles whether the physical key behaves as a function key (eg F3) or a hardware key (eg increase brightness).
That said, some people have reported that success using other software, including BetterTouchTool, and then using that to trigger Keyboard Maestro. In order for that to work, the keyboard in question would need to be sending some kind of signal when fn were pressed (it would certainly not be one that is supported by Appleās public APIs, and the policy with KM is to use only those).
Excerpts from an old thread:
I just figured out that BetterTouchTool handles the fn key as a key modifier.
So you can create any shortcut with the FN key. Pretty handy !
And from BetterTouchTool, you can easily call any macro in keyboardmaestro.
Hope that helps !
And surprisingly, @Airy, you said there that you had had some success too?!
It (the Fn Key, also called Globe) works for me, as a KM hotkey, using Sonoma. But in order to make it work I had to go into the System Settings / Keyboard page and switch "Press Globe key" to "do nothing." In fact, I've been using it for months without knowing that it wasn't supposed to work.
So anyway, no, Keyboard Maestro cannot directly support fn or esc... so choose other hot keys.