ESC and ENTER behavior on widget edit