In the first example, first event:
When the blue one is against the right wall, the 'is NOT on wall' will not pick a blue object. The Selected Object List is empty.
So, even when you unpress the key, making the OR condition true, there is no blue object for that action to work on.
The dot is a unreferenced object. So it does not matter for the dot. The actions just work on all dots.
(Assuming ther is only one blue object)