keyIsInactive fix

Fixes the issue described in #99