In the product description on the page you linked it says "The keys are relegendable, allowing the user to label them to fit a specific need.".
As for formatting the text, just measure the top of the keycap (cover removed) and print your legends to fit within that space.