1. Find out the ASCII code for each of the keys you want to lock
2. In the key press event check if the ASCII code matches then write code
e.handled = true (or false i dont rem exactly try one of this).
3. Please note that Key press event does not get fired in case of certain keys like delete, insert, etc.. So for these keys use key down events.
Comment