For keyboard:
Use the left and right arrow keys to move left and right.
Use the up arrow key to jump or double jump.
For mobile:
Hold the most left quarter of the screen to go left.
Hold the second most left quarter of the screen to go right.
Tap the right side of the screen to jump or double jump.