Select the friends list window.
Click the 'Add' button with your left mouse button, then type the nickname you want to add.
There are other ways to add a friend
From the IM window
Click the yellow emoticon with the green + icon over it.
From a chat room
Right click a nickname with your left mouse button, then click 'Add to Friends List' from the menu that appears.