whitespace fix and allow escape key to cancel edit mode of a todo

For #393