Fixed the rattle key functionality after an orientation change.