Check if the host is pressing the button/key, "BUTTON_A", "BUTTON_B", "K
while( self ButtonPressed( "BUTTON_A" ) ) ...