try something like this:
Obviously some modification will need to be made on your end, but what that should do, is set a random value from 1 to 4 to a variable. You can then make it
Show a Picture based on the variable. then it will multiply the variable by 2 to match the required direction button that needs to be pressed. Then you start the timer. using a loop, you use
Button Processing to assign the pressed button to a second variable. then check to see if that variable matches the first, if so, have it do whatever you want it to, stop the time, and break the loop. Also add a check in the loop to see if the timer is 0min, 0sec or less and if so, have it remove the required item and break the loop.