Moreover, there is another alternative: you can use the DEC code from an ASCII table to convert the character keys. Once you have the numbers, you can return each key-press as false before it is even written on the form/ disable them.