Compile a small C function for checking pressed keys and entering BSL (Bootloader) mode and add the code to the end of the original binary. Call the function from the code checking fn + F* keys.