May be clearer to have this after the click event is sent and before the enter key event.