In Godot you can put something called a Physical Key, which works with the position of the key. When you set "Alt" as the input needed, it automatically looks for "Alt" or "Option" key press. Is there something like this in Unity perhaps to make it a bit easier for you?