To avoid accidentally making a call when your phone is in your pocket or bag, lock the keys and screen of your phone.
Press the lock key.
Press the lock key, and drag the lock screen left or right. If the lock key is out of reach, press the menu key instead.
Select Settings and Phone > Display > Screen/keylock time-out.
Set the length of time after which the keys and screen are locked automatically.