Close group after pressing ENTER