I left my key in the room and can't get in.

Literal

Room [in-に] key [object-を] forgot [unfortunately-てしまって] enter-cannot.

Chains ~てしまって (regrettably did) with a consequence — can't enter. The て-form of てしまう connects the cause to the result.