Lever animation, how to animated two objects seperetly with the same key input

Rather than enabling and disabling input, an easier way would be