[sublime keymap] Make Esc behavior conform to Sublime Text

Closes #2348
Improve handling of changing widget height in changed() method

Issue #2355
[sublime keymap] Ctrl+d should go back to top after reaching bottom
[sublime keymap] Touch up 337e9771ab7f649b8c1f4abfce5c3346180610b5