If you just want to lock the keyboard instead of lock-up SIM and phone, a software named "autolock" is much suitable.The software will lock the keyboard after your defined time-up period.