Added tab and enter to dialog