Actually, with the Lockpick skill selected, you right click to activate it, then left click on the door (or hatch / container). If you want to check your technique, you can lockpick a closed chest to lock it, and do so again to unlock it.