getModifierState should always return a boolean

Standard says it returns a boolean and this is a simple enough fix.
Will `keyProp` ever be `undefined`?