you do it by firstly, disable defaults control on your sprite object, on layout, on clicking on it, you will show at left a bar where you will find "default control" of the behavior
then in the same layout, create object type "keyboard"
then you have to go in event sheet and creating:
"keyboard" on W is down => sprite > simulate controle to, left. for exemple