From the Home screen, touch and hold the Recent Apps Key (in the Touch Keys bar) > Lock screen settings.
Tap Select screen lock > Knock Code.
Tap the squares in a pattern (from 3 to 8 taps) to set your Knock Code, then tap Done, enter it again, then Confirm.