implement scrolling in up/down arrow key for NanoEditor