How to Pass values from an action mapping to the delegate function?

This is what I want to do:

I want to have multiple Action Mappings that are bound to different keys call the same delegate function but with different parameters. Similar to an axis value, but so that i can set my own.
Example:

pressing A causes the actionmapping to call function f with the parameter 2.

pressing B causes a (different) actionmapping to call function f with parameter 1.

or:

pressing A causes the actionmapping to call function f with the parameter 2, and function g with parameter 1.

I thought about keeping a custom table, mapping the input keys to the parameters, or treating the key as an axis, and setting the value there, but what if I need more than one value? They feel like very spagetti-like solutions, and I think they would break down in edge-cases (haven’t thought that through completly yet).

So how do I do this?

greetings,
Simon.