How to write mapping so that the button light stays on when the button is pressed for a long time and goes off when the button is released?