It gets the ID of whatever button your are holding down; usually, you put it in a variable so that you can do 'if' statements with it. For example: B=BUTTON() If B==1 Then 'Up ' Do whatever ENDIF