How does the input mapping context know that" W" is run forwards?

It is, thank you Quetzalcodename!