New Input System Question

If my question isn’t clear let me know.

If we use to use

Public KeyCode key;


What do I replace these lines of code with to get the same results because ‘key’ allows you to choose which input you want to use and I wonder is there a way to select a certain input action like ability(1) or ability(2) which have their own button type and settings and key?

The abilities will be on the ground and I want them to auto equip so I don’t want to set a direct input action I would like to choose which input action is used for each ability that is picked up or replaced.

It may help to look at the section labeled “Accessing your Actions from code” on the following page: