How can i make a function that when i press down for example "A" key on my keyboard it pushes down On and sends out signal for nupp('/TS'). Also on "A" key relase it should top sending the signal for nupp('/TS').
<html>
<head>
<script src=\"https://code.jquery.com/jquery-2.2.4.min.js\"></script>
<script> client.println("function nupp(url){ $.ajax(url); }"</script>
<button type=\"button\" onclick=\"nupp('/TS');\">On</button>
</head>
<body>