How can I check for specific keyboard combination

Hello, I am creating a maths game where the player has to type the correct answers to questions.

e.g 6 + 7 is displayed. I already have the answer saved in int variable called answer so just a case of checking the players answer with the correct one. so the player types 6 key and then the 7 key and the system shall recognise this is the answer.

What is the best way to go about doing this?

Thanks

Use Input.inputString. It contains the characters enter during the current frame. You will add these characters to an ongoing string and can do a string compare between your correct answer and the ongoing string. Note that you will have to process the backspace key yourself (it appears as a special character in the string).