trigger modes on value changes
Close drawer on keydown and body click