Just match like and like using the arrow keys. You move every tile on the board in the given direction, provided it isn't blocked by the edge or a different kind of tile.
I have yet to figure out if there's any sort of logic to where the new tiles appear, or why sometimes a second tier tiles pops up (maybe first tier tiles appearing in the same spot?).