Fix keyboard capturing in contenteditable fields

Without this fix, pressing certain keys (space, arrows, etc) inside a field with the `contenteditable` attribute enabled was intercepted by niceScroll.