In BGE, how do I move an object up with a motion actuator for a few seconds then bring the object back to its original area I am making a game in which if you press e the character will lift up their shield to block an object. I am using a cube to detect objects so when i press e I want the cube to move up to avoid hitting with an obstacle, giving the illusion that you have blocked the obstacle with your shield. When I use the motion actuator it moves up fine but it just wont move back down automatically to receive another obstacle ahead. Thank you for any feedback.
I suggest to play an action that lifts the object. 

A simple logic would be to have one sensor that measures when to block (e.g. keyboad sensor on E).



Activate an action actuator that plays the action in flipper mode. This means when the blocking request ends -> the action will be played reverse.