snap to grid on keydown: s