Zu 1.: http://www.conitec.net/beta/ainkey.htm

Zu 2.:
Code:
on_space_event()
{
   var h = media_play("whatever.mp3",NULL,100);

   while (key_space)
      wait(1);

   media_stop(h);
}



Always learn from history, to be sure you make the same mistakes again...