onblur event added

added the onblur event to clear the downKeys array when focus is changed