Movement detection for gesture control