Replaced the triggering mechanism for a key in ShouldMoveAvatar

JavaScript mechnanism works more reliably on Linux.
Merge branch 'fix_login_in_test' into develop