I think the way I would do this is to have the ISR read any serial data into an array, the check the array for "P", "G", or "R" and act accordingly.
You will have to use the USART (HSERIN). And it will pretty much be a complete re-write of what you have now...
Bookmarks