Refer Tutorial

Up Arrow

Down Arrow

Left Arrow

Right Arrow

Checkout the source here...