additional logic when hitting enter for various behaviors