Support Escape to cancel/dismiss interface.
Fixes #27.