Are you on live or beta? If you're on beta, they may have changed the "state" argument passed into the event to a boolean or something else that isn't a numeric 1 for "the key is pressed".
Code:
print("Shift changed:", type(state), state)
if state == 1 then