I am creating a html page which contains a question (a puzzle like situation ). The answer for the question is "Windows 7", but I want the user to get through the question only if he presses windows key followed by 7. I want to create a JavaScript function for this. I am able to capture the individual key press by getting the ASCII value of the keystroke., but when I try to do it in combination its not working. How to go about solving this? Any ideas?
I am creating a html page which contains a question (a puzzle like situation
Share
http://jsfiddle.net/loktar/MsNPW/5/