matched names
added function to clear input pressing Esc