allow escape key to end edit mode of a todo