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

for #393