signed / unsigned fixes for RPM and fixes for button press detection in lua