The escape key is a commonly accepted close signal and closes all input pickers in Firefox and Chromium. It doesn't however close any aside from the file input in Safari. This issue will track addressing that (including datalist pickers). It may end up being split in various sub issues for different input types.
<rdar://problem/116177813>