handle tabs, change enter key behavior for different buttons