Fix wrong index given by Selector::findNearestSection
Fix escape key test