IF B AND [button] THEN IF MAINCNT - LASTBUTTON < [time in milliseconds] THEN [dance a jig or special move] ENDIF LASTBUTTON = MAINCNT ENDIF