Check certain conditions properly, handle Ctrl-j as enter, and provide a name for spaces.
Another initialization fix.