Use arrow-keys to move and space to drop your hammer. After dropping your hammer, it will fly back to you. NOTE: I didn't put much effort in to this so complain all you want.
Credit to SEGA Eggman and hammer are from Spriters Resource.