Multiple displays: Mirror or Extend to:...

I use my iPad Pro as an external display a lot. I'd like to be able to press hotkey to "Extend to iPad". Is this possible?

I'd like to use F5 key for this functionality.