Added keyboard up/down functionality