Key motion control