more keypress event handling
both up and down arrow actions are working