Sketch for Arduino Leonardo

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

Have a look here for some basic information on Leonardo keyboard emulation: https://www.youtube.com/watch?v=0fjuJOkk8y4

I will try.

Thanks