The button handler is not handling the button-pressed flag (0x08), it should be preserved.