How can I use a keyboard shortcut to trigger a 2 finger trackpad swipe

Newbie, sorry for basic question.

I just want to press cmd+option+p and have it be the same effect as a 2 finger swipe right.

Is this possible? I see 3 finger swipe as an option but not 2.