How do i make my camera move while i touch a button

so im working on a mobile port of a project that im working on
and i noticed that alot of games i have played in the past has that you can press buttons while you move camera (example pixel gun 3d)