Keep sprite flipped?

Doing a side scrolling game - if i press right/left, he goes to the movement frame. i want him to go to the stopped frame when no key is down, but the frame shows him facing right.
how can i make it ‘remember’ his direction?

thx
presstilty