Here’s a good place to start:
- http://codex.wordpress.org/Template_Tags/previous_post_link
- http://codex.wordpress.org/Template_Tags/next_post_link
As you will see, keeping the links to posts of the same category is as simple as setting an argument in the function.
I would give an example but there are really good examples on the pages linked above.