accidentally

Definition

In a way that is not intended or planned.

Example

"He accidentally locked his keys inside the house."