The modification would not have to be part of Command -- which is only a class to deliver messages/events to the entities -- but rather Player, where the input is generated. Instead of reacting to the arrow keys, you could evaluate the mouse movement.
By the way, please post in the Help section if you need help, not in General Discussions.