Question: how do genes cause behaviour?
Answer: Genes, via their influences on morphology and physiology, create a framework within which the environment acts to shape the behavior of an individual animal. The environment can affect morphological and physiological development; in turn behavior develops as a result of that animal's shape and internal workings.