Yeah, using escape for completion matching was a terrible idea; it breaks the arrow keys (likely among other things.)

Use tab instead, but insert spaces if we're not in the middle of anything.