You're using the numpad enter key... is that right?
If not, you might want to add some text or debug messages to your code which output the current function and the values of certain variables (in this case 'change') plus the last keyhit.
If not, you might want to add some text or debug messages to your code which output the current function and the values of certain variables (in this case 'change') plus the last keyhit.