Assigning Spacebar to Commands

It works, but then when you save+quit/exit/enter game, it assigns a dozen other keys to the same command and completely mucks it up.