elseif events[1] == "key" then if events[2] == 79 then table.insert(equation, #equation, "1") elseif events[2] == 80 then table.insert(equation, #equation, "2") elseif events[2] == 81 then table.insert(equation, #equation, "3") elseif events[2] == 75 then table.insert(equation, #equation, "4") elseif events[2] == 76 then table.insert(equation, #equation, "5") elseif events[2] == 77 then table.insert(equation, #equation, "6") elseif events[2] == 71 then table.insert(equation, #equation, "7") elseif events[2] == 72 then table.insert(equation, #equation, "8") elseif events[2] == 73 then table.insert(equation, #equation, "9") elseif events[2] == 82 then table.insert(equation, #equation, "0") elseif events[2] == 83 then table.insert(equation, #equation, ".") elseif events[2] == 78 then table.insert(equation, #equation, "+") elseif events[2] == 74 then table.insert(equation, #equation, "-") elseif events[2] == 55 then table.insert(equation, #equation, "*") elseif events[2] == 181 then table.insert(equation, #equation, "/")