<script type="text/javascript">
function isKeyPressed(event)
alert("The meta key was pressed!")
alert("The meta key was NOT pressed!")
<body onmousedown="isKeyPressed(event)">
<p>Click somewhere in the document. An alert box will tell you if you pressed the meta key or not.</p>