your on the right track. when your in the "button" settings, all the way on the bottom there is a "end key" tab. click the tab and check "automatically exexcute the selected action" then check "lock device" hit ok on the bottom. thats it. now when you long press the end key your device will give you a vibrating notification that your device is locked.