C.38.  $world->getkeycode

Abstract

$world->getkeycode function: GETs the KEYCODE for a key combination

$keycode = $world->getkeycode(void); 
 

After running this function, press a key (or a combination of keys). The keycode (to be used in the $world->macro function) will be returned and also printed in the screen.