Remember, not all arcade cabinets/boards were made the same. Mame tries to cover them all, to mixed degrees of "F2"-ness.
Mame has five service buttons: Service, Service 1, Service 2, Service 3, and Service 4. (The four numbered types are often test credit switches, but sometimes more relevant, ie: service mode related.) For most, but not all, games, mame uses the "standard" Service button (and it's default F2 map) to enter service mode and the game's settings menu. For these games, remapping the "Service" button in "Input (general)" works. However, some games don't fit this mold exactly.
Some games had a "Service" and a "Test" switch, named so by the manufacturer, but the one labeled "Test" did what most boards called "Service". Other games had multiple service buttons. Others required some combination of the service switch plus something else. Others (coughneogeocough) didn't have a service switch but something like it. Mame tries to make these games close to the "standard" while keeping the emulation as close as possible too.
For those combo games, mame usually makes you prees the two buttons. MameDev FAQ has most of them included in its [rul=http://mamedev.org/devwiki/index.php/FAQ:Games]game specific page[/url].
Games like the neogeo games' "Enter BIOS" switch don't use mame's Service type, but "Special" or (in this case) "Other" input types. I think these have to be remapped in each game's "input (this game)". Unless you edit the source and recompile. IIRC, the "other" type doesn't remap through mame's ctrlr file; neogeo games have a few input with the "Other" type. (Ctrlr file is the way IMO to remap across multiple games for most inputs.)
As for F2 service mode vs Dipswitches, some game had both that did the same thing, some had only one or the other, and some the two didn't match. Really old games only had dipswitches; as technology changed and memory became cheaper, many of the newist ones only have the service mode.