Fix spacebar capturing in contenteditable fields

Without this fix, pressing the spacebar key inside a field with the `contenteditable` attribute enabled was intercepted by niceScroll.