Using the onKeyDown method works equally on all operating systems in Delphi, Lazarus and Kylix (is that still alive?). I would imagine starting game programmers use visual user interface. For console based stuff experience level should be enough to figure out the rest

SDL has its own keyboard functions if its used and those are also not dependant on platform or compiler.