a place on this forum to post code that actually works and get feed back on it
For "usable" code, I'd recommend github, which has revision control, and an "issue tracker" and so on. It also encourages documentation, and is good even if the code is only "slightly useful.) (like, say: GitHub - WestfW/ps2keypolled: Polled PS/2 keyboard functions for Arduino)
and get possible suggestions from other members as to how they would go about writing code to accomplish the same code as is posted?
Ah. Well, that's somewhat different, and harder to say. github might still be useful, if the code is reasonably large, bur the "Programming Questions" or "Project Guidance" sections are probably better for getting "alternative method" ideas.