Use the A key to ask a question. Use the Space Bar to program the AI. How this works is when the Space Bar is pressed, it activates a system which asks you questions which program the AI, and when the A key is pressed, it asks the user "Ask me anything..." and sets (var) i to 0. then, it repeats the length of (list) input, change (var) i by 1 and if answer contains item (var) i of (list) input, say item (var) i of (list) output. That is a (brief) explanation on how this works.
100% by @-Voxel- (me).