fixed check if object is on map
second input switch before hui handling, to catch lcontrol events