Although they seem like separate events, because you change the variable 1 to a 3, it makes the event below true in time to run it because they all trigger on key press in order from top to bottom. You can try just having the one key press condition then use sub events with 'Else var=1, Else var=3'.