preparation for key releasing when losing focus in SDL