Added somewhat more efficienct temporary debugging code to input.c