Adding escape functionality to cancel edit to a card