Switch screen layer

how to switch layer
touch screen i have created number pad and add a K_NUMLOCK button

This section “Another option for upper case characters” at Simple Touch Keyboard Development Example should help.

In your case, click on the NUMLOCK button and, in the “Next Layer” field, choose “Default”. What it does is that when the NUMLOCK key is pressed, you will be taken to the Default layer.