Depends on how many backgrounds you need. If you only need 2 then you can use an "instance variable" and set the type to "boolean"
Set a key to "toggle" the "boolean".
When "true" set background 1 to "visible" and background 2 to "invisible"
When "false" set background 1 to "invisible" and background 2 to "visible"