The only two standart control in B4PPc that suport "keyPress Event" are the Button and the Textbox.
Other controls have similar events...
You can change the default event triggered by adding an event...
For instance you want the same code to de used in more than one event, but That would cause too much code lines...
so just add an extra event that will overRide the default event of the control:
AddEvent("Button1",KeyPress,"MySub")
AddEvent("TextBox1",KeyPress,"MySub")
This will cause that both keypress events will be "linking" to the same Sub...