I noticed that Choice Palette returns undefined when the Escape key is pressed, but the docs say it should return null.
So I programmed both cases in my extension just to be safe, but it did not work with just null.
as mentioned in: Multi-select in Choice Palette