Implement shake event.