Fixed up the up and down functions. Had to change to alt due to mac key commands