Using keypad to scroll. HELP PLEASE

oh sorry about the number of 'if's and brackets used, i myself got confused sometimes. thank you for the help, i will try it tomorrow and let you know.
so are there any better ways to program this?