key_lastpressed has range (it says in manual) 0-255 and scan number for mouse are 280, 281, 282. that's why it doesnt work with mouse.

check key_lastpressed in manual to see that...



Ubi bene, ibi Patria.