How can I make camera automatically change its location ,so that it would adjust to the models of different size?

Did you happen to know what could cause my keyboard event (like press F,1,2)not firing?I tried “enable input” or change settings in details. It just not fire while playing, if i use the same scripts in the other typical project, they work just fine.
It’s a Azure project