close when focus out using keyboard