scale motion evnets and process key events