Fix spacebar capturing in contenteditable fields