Add text selection using page up/down keys to the React-based editor