Simply move (as in any other chess programs) your king TWO squares to the side you want to castle.

The following conditions must be true before you can castle:

1. your king and rook have never been moved2. your king is not under attack (in check)3. your king is not passing through or arriving upon a square controlled by the opponent and4. all of the squares between the king and rook are vacant