To avoid accidentally making a call when your phone is in your pocket or bag, lock the keys and screen of your phone.
Slide the lock key.
To unlock, you can also press the menu key, then select Unlock.
Set the keys and screen to lock automatically
Select > Settings and Phone > Display > Screen/keylock time-out.
Define the length of time after which the keys and screen are locked automatically.