How exactly do I go about picking locks?

Solution 1:

To be able to use the lock pick skill you need to have lock picks in your inventory. To obtain lock picks you will have to explore the world, or trade with merchants. If you have a lock pick in your inventory, make the lock pick skill your active skill, and then right-click. Your mouse cursor will change into a rotating key. Now select the door or container you wish to lock pick, and if your lock pick skills are good enough, the door or container will be opened when you left-click on it. Each lock pick attempt will remove a lock pick from your inventory. To cancel the lock picking, right-click.

SOURCE