Ambit,
I'll take a wild, untested shot at it.

code:
  

var dbltap = 0;

on_k = doubletap;

function doubletap
{
if (dbltap > 0){return;}
while (dbltap < 2) // 2 is the max time before the second tap
{dbltap += time;
if (key_k > 0)
{dbl_tap = 10; // any number > 2, to get us out of the loop
do_the_function();}
wait(1);}

dbltap = 0;
}


function do_the_function
{
beep;
}


-WildCat



Visit us at [url=http://www.vertexgames.com]Vertex Games[/url]!