i think wolron's method is best.
Function CheckForKeyHit(key%)
if keyhit(key)
return true
else return false
endif
end function
if CheckForKeyHit(28) = true and a=0
value=true
endif
Function CheckForKeyHit(key%)
if keyhit(key)
return true
else return false
endif
end function
if CheckForKeyHit(28) = true and a=0
value=true
endif