add keycode instrumentation