simplify and fix indentation in tab and enter

moves tab code to manual_readline