<html> <body> <input type="button" value="Click this button while pressing either Ctrl key" onClick="alert(event.ctrlKey);"> </body> </html>