SPOILERS:
To beat level 6, the w should be in the up position, the a should be in the down position, and the d should be in the right position. Hope that helps!