Button Combo?

How can you make a button combo? for Example A + B must be pressed together for something to happen.

Never mind I solved it