Lightweight tab completion for input and textarea