When the key is pressed, you are checking if the player character is Gideon with a cast, which fails if the player is currently controlling the Countess....