Since input keys are now their own assets, you can also simply reference them as an asset (InputKeyAsset).
If you've got an asset, you can use these static functions to get button/axis input:
bool button = InputKey.GetButton(asset);
float axis = InputKey.GetAxis(asset);
They also handle checking if the asset is null, so you can just fire them without worrying about that :)