If you want to avoid accidentally making a call when your phone is in your pocket or bag, you can lock your keys and screen.
To lock your keys and screen, press the power key.
Press the power key, and swipe to the right from the lock icon. If prompted, provide additional credentials (e.g., PIN or password).