Sketch for Arduino

I bought Arduino Leonardo to use as a keyboard.

Can I have an easy sketch to test the commands <KEY_RIGHT_ARROW> and << KEY_LEFT_ARROW>

Thanks