Accelerator() causes Error

Thank you. It works now. Any idea why this error occurs?