look in the example third or first person. They assign a mapping context on begin play. You can just copy paste those couple nodes to do the same thing.
One confusing thing though is that multiple mapping context can be active simultaneously. They have a priority that you can assign. But you might want for only one to be active. In that case, you may want to use Remove Mapping Context: