how do i do a right click on a button. I have seen poeple do something like this

if button2 = true or something like this . How do i do this