Arcade Controls controlling Game in Retroarch and Retroarch menu

Trying to set up my first arcade using retro arch and launch box as a front end.Cannot workout how to get my arcade buttons to stop controlling retro arch’s menu as well as the game at the same time

go to settings > user interface > don’t run in background > ON