A better "hack" for linux users: Linux supports a "digital-only" modifier called "Hyper". You can use Xmodmap to set a key as hyper on press, and set Hyper-F[X] to whatever functions you wish to.
Alternatively, use a keyboard with QMK, or install a dedicated application like KMonad.