[Xmonad] Some keybindings work and some don't?

I’m trying out Xmonad and am building a config file. However I have an issue with the keybindings. Some of my keybindings are working and some aren’t. It makes no sense to me why. It compiles just fine, no errors. And to me either all should work or none. Why just some?

For instance I can launch a terminal, lock my screen, launch the file manager but i can’t launch firefox or vscode. And the same in the next section. I can launch rofi launcher, rofi window finder but dmenu and rofi exit menu aren’t working with this in my config:

terminalCmd         = "alacritty"
browserCmd          = "firefox"
editorCmd           = "code"
fileManagerCmd      = "nautilus --new-window"
dmenuCmd            = "dmenu_run"
rofiCmd             = "rofi -show drun -theme clean"
rofiWinCmd          = "rofi -show window -theme clean_window"
rofiExitCmd         = "~/.config/rofi/launch.sh powermenu"
screenLockCmd       = "slock"
myFocusFollowsMouse = True

myKeybindings conf@XConfig {modMask = modMask} = M.fromList $
    --Launch programs
    [ ((modMask, xK_Return), spawn terminalCmd)              --Launch terminal
    , ((modMask, xK_w), spawn browserCmd)                    --Launch browser
    , ((modMask, xK_e), spawn editorCmd)                     --Launch editor
    , ((modMask, xK_a), spawn fileManagerCmd)                --Launch file manager
    , ((modMask, xK_l), spawn screenLockCmd)                 --Lock the screen

    --Launchers and menus
    , ((modMask, xK_r), spawn dmenuCmd)                      --Launch dmenu launcher
    , ((modMask, xK_p), spawn rofiCmd)                       --Launch rofi launcher
    , ((modMask .|. shiftMask, xK_p), spawn rofiWinCmd)      --Launch rofi window finder
    , ((modMask .|. shiftMask, xK_e), spawn rofiExitCmd)     --Launch rofi exit menu

main = xmonad $ def
    { modMask             = mod4Mask
    , focusFollowsMouse   = myFocusFollowsMouse
    , borderWidth         = 1
    , terminal            = terminalCmd
    , normalBorderColor   = "#cccccc"
    , focusedBorderColor  = "#cd8b00"
    , workspaces          = myWorkspaces 
    , keys                = myKeybindings
    , startupHook         = myStartupHook }