trim trailing tabs in key entry