This feature is experimental. Please share your experiences so we know what to keep or change.
Registers an event listener to be called when the user
presses the Escape key.
up.event.onEscape(function(event) {
console.log('Escape pressed!')
})
Tip Your coding agent can search these docs locally with the Unpoly agent skill