The minibuffer has its own set of local keymaps; they contain various completion and exit commands.
minibuffer-local-mapis used for ordinary input (no completion).
minibuffer-local-ns-mapis similar, except that SPC exits just like RET. This is used mainly for Mocklisp compatibility.
minibuffer-local-completion-mapis for permissive completion.
minibuffer-local-must-match-mapis for strict completion and for cautious completion.