rename script supporting enter key.