How do i make shift a button that can be pressed on the controller?

This is what i’m saying i know it is possible but how With Arrays how would this be done. This is what i don’t understand.