Close credits and configuration panels on canvas mousedown