added shift-up/down for viewing scrollback buffer