An application fee is a fee for processing your application. It is usually non-refundable. I have read applications where it is applied to rent, but far more commonly not. You need to read your application to see more about that. Either of those scenarios would be legal in PA.
I'm confused by what you mean by move in inspection charges as well. Are you talking about something separate from your application fee?