This protocol describes a head-fixed lever-pushing task used to study motor learning and memory in mice suitable for recording neuronal activity concurrently.