Hey Vihulym,
You can store the result of the spacebar into a variable. Then on the overlap, you check the state of the variable.