Handled enter press correctly.