Tidy up movement listener.
Delete all trailing whitespace.