Added listener for keyboard movement and mobile detection.