Use space to swim and the left and right arrow keys to move from side to side, avoid the sharks for as long as possible and try get a high score.
I came up with this game myself but did use a tutorial for the floating.