appropriately
In a way that fits the situation or rules.
Appropriately means in a way that fits the situation or follows what's expected. When you dress appropriately for a wedding, you wear nice clothes rather than your soccer uniform. When you speak appropriately in class, you raise your hand instead of shouting out.
What counts as appropriate changes depending on where you are and what you're doing. Loud cheering is appropriate at a basketball game but not appropriate during a library visit. Jokes might be appropriate at lunch with friends but not appropriate during a serious conversation with your principal.
Acting appropriately means reading the situation and adjusting your behavior to match. You probably talk differently with your grandmother than with your best friend, wear different clothes to a beach than to a funeral, and use different words in your English essay than in your text messages. That's acting appropriately: matching your choices to what makes sense in each context.
The opposite is acting inappropriately, which means doing something that doesn't fit the situation or breaks expected rules. Understanding what's appropriate shows social awareness and respect for the people and places around you.