HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body onkeydown="myFunction(event)"> <p>Click on this page once and press ctrlKey or any</p> <script> function myFunction(event){ if(event.ctrlKey) alert("ctrlKey was Pressed"); else alert("ctrlKey was not Pressed"); } </script> </body> </html>
OUTPUT
×

Save as Private