Adds debug messages in input
More debug in input.c