This is odd indeed. Safe to assume you are using v2008? It does seem that in your case response is always one less--unless name = 1. Does this replicate with your keyboard (i.e., if you do not use the button box)? Also, are you using any grid functions (mouse cursor, light gun, touch screen)?
Could you run the attached, simplified, input file and see if the results are consistent when using your keyboard? If so, could you please attach the log file?