It would return the same keystroke, which is different from performing the same function ... he could change the default controls within MAME (or other emulator, depending) and have the same button return the same keystroke, but do two totally different things in two different games.
Question to BW ... can you solidify your question with an example ?
Cheers