Revert "Fix for the scan code button."

This reverts commit 6b3985d861f422353a873b52c3f66c6532d605bf.
Put it back in the controller.