I'm guessing OK and RIGHT are two definitions.
Maybe your code is hanging in the set_cursor_location() function.
In general, you need to find a way to debug these types of issues, and one simplistic way is to use
an indicator on the microcontroller board (e.g. an LED) to see how far you've got in your
code. You can write an LED_ON and LED_OFF definition for example, and place it in your
code to see how far you have got.
Also, bear in mind that your microcontroller runs fast; in your code, would you expect if a user
pressed the button for (say) 100millisec, would the x value have increased by 7, or some
huge multiple of 7 (e.g. 700)?