Several changes needed to allow coordinate input to be implemented in future (including the CLICK message and InputXY keyword).
Also fixes a bug that was caused by changing MoveItem from Uint8 to Uint16.