Clear selection on esc (fixes #643)