Fix events on pressed "Spacebar" and "Enter"