Fixed keyIsInactive to consider keys below inactive keys to be inactive too
Merge pull request #100 from fberlakovich/keyIsInactive-fix

keyIsInactive fix