added window blur support

releases pressed keys on window blur
Merge pull request #3 from SebastianNette/master

added window blur support