Add some debugging output to input event processing