added custom up and down arrow key selection mechanism