improve tab key in edit