Can I change the button "m" with space bar?
To make this work you have to use a third party tool: Karabiner.

I propose to use one of the option keys though: usually one of both is rarely used and you can use M as normal key.


Download, install and open Karabiner
Open in the menulet Karabiner -> Preferences
Enter "Space"


Enable the chosen keycode and close the window.