Installs a function to receive error messages related to key mappings. The form of the callback function f is:
typedef void (*wxKeyErrorFunction) (void *data, char *msg)
The value of data is passed on to the callback function when it is invoked.