The key lock feature helps you avoid accidentally typing or pressing keys when the device is not in use. You can unlock the keyboard of a device at any time by using the correct keystrokes provided by your mobile or computer.
Steps
Method 1 of 4: Unlock Blackberry Devices

Step 1. Press the unlock button, located at the top left of the device
At this point the keyboard will have been unlocked and can be used.
Method 2 of 4: Unlock Motorola Devices

Step 1. Press the unlock button
On most Motorola devices this is the function key on the left.

Step 2. Press the "*" key
The device has now been unlocked and can be used.
Method 3 of 4: Unlock the Keyboard on Windows

Step 1. Click on the "Start" menu and select "Control Panel"

Step 2. Click on "Ease of Access Center"

Step 3. Click on the "Make the keyboard easier to use" tab and remove all check marks next to the options displayed on the screen

Step 4. Click on "Ok"
The keyboard has now been unlocked and you can use it.
If your keyboard is stuck after following these steps, restart your computer to fix the problem
Method 4 of 4: Unlock the Keyboard on Mac OS X

Step 1. Click on the Apple menu and select "System Preferences"

Step 2. Click on "Universal Access" under "System"

Step 3. Click on the "Mouse and Trackpad" tab

Step 4. Uncheck the checkbox next to "Enable Mouse Keys"

Step 5. Close "System Preferences"
The keyboard has now been unlocked and can be used.