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

Save as Private