Or the er, hard way if you want to keep track of pressed and held keys:
If KeyDown(TAB) ; where TAB is a constant holding
; the scancode for tab
If TAB_Held = 0 ; cumulative variable
Switch_CameraMode() ; Your camera switching stuff
EndIf
TAB_Held = TAB_Held + 1
Else ; reset TAB_Held when tab's not pressed
TAB_Held = 0
Endif
If KeyDown(TAB) ; where TAB is a constant holding
; the scancode for tab
If TAB_Held = 0 ; cumulative variable
Switch_CameraMode() ; Your camera switching stuff
EndIf
TAB_Held = TAB_Held + 1
Else ; reset TAB_Held when tab's not pressed
TAB_Held = 0
Endif