Capturing key in update()