Customize 'outline-minor-mode-cycle' to t and enable outline-minor-mode. Put point on a heading and TAB cycles visibility as expected. However, disabling the minor mode, the keymap remains active and TAB still cycles on this heading. I propose this patch to fix this.