draw shadow responding to user input