Handling Weapon Switching Using Action Mappings

I was wondering if there is a way to have different keys perform a different action within the same action map. I’ve created an Action Map labelled WeaponSwitching that takes in input from the number keys 1 - 4, and the middle mouse button and I want each button to switch to a different weapon. I was thinking about just doing a switch statement that corresponds with each button press but I can’t seem to find any documentation on how to get which key is pressed. Do I just have to create a separate action map for each weapon?

This would interest me too… :smiley: