added 'enter' keypress event on inputs to close the menu