remove space bar trigger event outside update function.