added window blur support

releases pressed keys on window blur