[m] Modified drawing to draw only when key is pressed