I have tried the examples that come with PBP for HID and the mouse emulation works great, is there a way to emulate a keyboard as well?

I am trying to make a custom keyboard but can't find any examples.

Any help would be greatly apereciated.

Thanks