Adding to the comments about VIA and QMK, you can also use something on the computer itself to do ergonomics tricks and making F7 usable again.
I’m in particular using kanata, which then works on everything from notebook keyboards to custom ones. I’m not 100% happy with it and in fact considering to write my own software for this, but it’s good-enough for basic usage. It might be good-enough for you. kmonad is less buggy but has fewer features (definitely enough for F7 though).


I’m on Linux, and I get hit by this bug a lot: https://github.com/jtroo/kanata/discussions/422
The official work-around is to use an additional F24 key press-release sequence: https://jtroo.github.io/config.html#tap-hold but that works poorly for me. Some apps are messed up slightly because of this (editors such as kate which stops understanding Ctrl Z properly), some work smooth, and some even break entirely to the point of becoming unusable (terminals such as raw tty3 or xfce4-terminal).