Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Is this really a good getch() function? the reason i ask is because this bypasses the keyboard driver!
And you will not be able to implement ungetch()!!?
so what of
unsigned char getch()
{
if(keypressed==TRUE) /* set in keyboard driver when a key is presses and read*/
send message(keyboard driver, get key);
return get key;
}