Each button connected to the LK202-25 header will return a single byte through the serial port. You can Assign Keypad Codes using the command in your manual
to return a desired value for each key.
section on our .ca site will have a variety of examples in a number of languages. For your purposes I would suggest the input/output example of the C++ pack, but you can browse the files there to find inspiration for your own program.