that happens to me sometimes when i turn the keyboard off while the program is still open
i just close reason and open it back up
another thing that might help u is go to edit preferences control surfaces and keyboards
and check if everything is plugged in right
hope it solves ur problems