Intelligently determine what action to take on 'Enter'