WIP using struct array and callbacks for bluetooth setup
make key mask generation more efficient.
made the cmds array static so it uses fewer resources.