Disable and enable keyboard

Hi all! I am having a problem of not knowing how to disable and enable keyboard. My game goes like this: a question with four multiple choices will appear and if the player answers the question correctly, the player will be able to move by clicking the right arrow on the keyboard. And when the player collide with something, the keyboard will be disabled, so that the player stop moving and the second question will appear. And if the player answers the second question correctly, the keyboard will be enabled and the player can press the right arrow to move again and proceed to the third question.

so far it seems easy. not necessary disable the whole keyboard (the title refers to this), only the right arrow key. if I understand correctly.
in the event, where the “a key is pressed” condition is, add: if the player is NOT overlapping with the the question trigger. but with this method you should delete the given question trigger, when the answer was correct.

1 Like