きがけでした
okigakedeshita

Noun
Desu Copula

The polite past form of 起きがけ

1. Was about to wake up.; Was on the verge of waking up.

Past/Perfective
Polite