If you are using Linux, the pressing F12 is equivalent with sending the key symbol XF86AudioMedia
. If you are using i3 or Sway window manager, the setting is like this in the config file. In this case, running firefox
with opening a specific URL.
bindsym XF86AudioMedia exec firefox http://community.frame.work/
If you want to change other Fn keys too, the following document could be useful.