On pressing Esc the option list is hidden
When focus shifts outside of the component the dropdown is hidden
More robust solution for hiding the option list when clicking outside of the component