moved to keydown and updated content