just moving back and forward

Need more details, what is "move back and forward" exactly? If it won't turn off, try holding the power button in for a few seconds, or remove the battery if it's removable.