Enable f12 shortcut for firebug
You can disable or change the shortcut for Dashboard in System Preferences -  Mission Control for Mac OS X 10.7+. In older versions of Mac OS X the appropriate preference pane should be called Exposé.

After you changed the shortcut, it should correctly activate Firebug instead when Firefox is active.