Can somebody tell me what is the char code for key "delete"?

usually its ^H or ^? but not always they often are backspace, best way is to grab all characters on a press and see what you get - although it would seem a bad way to test for a delete key