Maybe the keyevent didn't get sent correctly with the OR conditional