not closing wselect when use key escape