added event when press enter on input field