Up and down arrow key functionality now work as intended