I am coding an arrow key driven menu and would like to know how to detect when the user presses the up, down, left, or right arrow key. So let's say that the user presses the down arrow key, the screen would show the cursor to the next button below. If he presses "enter" then it would launch a function.