updated types from Reactive to Reactive.ReactionType
updated type in Key to Key.KeyType and fixed minor error