src: add $appply to escape key handler, fixes #42