Fix for wait_click missing button presses, move wait_click code from core to script modules.
Move kbd_get_autoclicked_key to core/kbd.c (and remove 96 identical copies from platform directories).
Remove the need for the kbd_reset_autoclicked_key function.
Fix for revision 2602 to stop shutter press that starts script from being seen by wait_click.