Issue #436: method to clean up the current list of pressed buttons.

Without it, interfacing with some .NET-based pages becomes a PITA.