Update hasValue class on keyDown as well as keyUp

https://next.getflow.com/workspaces/1/tasks/5603831