Fix events on pressed "Spacebar" and "Enter"
Merge pull request #264 from vsn4ik/master

Fix events on pressed "Spacebar" and "Enter"