That can be done using something like
Begin Boolean Compare : [useSecondKey] Does Not Equal True
Press F key and hold for 0,06 seconds and release
Set Boolean [useSecondKey] to True
Else
Press 1 key and hold for 0,06 seconds and release
Set Boolean [useSecondKey] to False
End Condition
Make sure to check the "Evaluate 'Not Set' as false" option.