Scans a given key group and returns a keycode. Returns with the Z flag set if no key was pressed.
Technical Details #
a = Key group to scan. Standard direct-input codes.
a = Key mask returned. As with direct input, $ff means no key
z flag = Set if no key in specified group was pressed. Reset if at least one key in group was pressed.